- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for functions (0.05 seconds)
-
fastapi/_compat/v2.py
@lru_cache def get_cached_model_fields(model: type[BaseModel]) -> list[ModelField]: return get_model_fields(model) # type: ignore[return-value] # Duplicate of several schema functions from Pydantic v1 to make them compatible with # Pydantic v2 and allow mixing the models TypeModelOrEnum = Union[type["BaseModel"], type[Enum]] TypeModelSet = set[TypeModelOrEnum]
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 19.1K bytes - Click Count (0) -
fastapi/routing.py
) -> Any: # Only called by get_request_handler. Has been split into its own function to # facilitate profiling endpoints, since inner functions are harder to profile. assert dependant.call is not None, "dependant.call must be a function" if is_coroutine: return await dependant.call(**values) else:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 174.6K bytes - Click Count (0) -
docs/en/docs/release-notes.md
**several benefits**, one of the main ones is that now the parameters of your functions with `Annotated` would **not be affected** at all. If you call those functions in **other places in your code**, the actual **default values** will be kept, your editor will help you notice missing **required arguments**, Python will require you to pass required arguments at **runtime**, you will be able to **use the same functions** for different things and with different libraries (e.g. **Typer** will...
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:06:15 GMT 2025 - 586.7K bytes - Click Count (0) -
fastapi/datastructures.py
class UploadFile(StarletteUploadFile): """ A file uploaded in a request. Define it as a *path operation function* (or dependency) parameter. If you are using a regular `def` function, you can use the `upload_file.file` attribute to access the raw standard Python file (blocking, not async), useful and needed for non-async code. Read more about it in the
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 5.1K bytes - Click Count (0) -
fastapi/param_functions.py
function* ends, but **before** the response is sent back to the client. So, the dependency function will be executed **around** the *path operation **function***. * `"request"`: start the dependency before the *path operation function* that handles the request (similar to when using `"function"`), but endCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 63K bytes - Click Count (0) -
docs/es/docs/advanced/dataclasses.md
8. Nota que esta *path operation function* usa `def` regular en lugar de `async def`. Como siempre, en FastAPI puedes combinar `def` y `async def` según sea necesario. Si necesitas un repaso sobre cuándo usar cuál, revisa la sección _"¿Con prisa?"_ en la documentación sobre [`async` y `await`](../async.md#in-a-hurry){.internal-link target=_blank}.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.5K bytes - Click Count (0) -
docs/en/docs/advanced/dataclasses.md
8. Notice that this *path operation function* uses regular `def` instead of `async def`. As always, in FastAPI you can combine `def` and `async def` as needed. If you need a refresher about when to use which, check out the section _"In a hurry?"_ in the docs about [`async` and `await`](../async.md#in-a-hurry){.internal-link target=_blank}.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/zh-hant/llm-prompt.md
3. Use the following preferred translations when they apply in documentation prose: - request (HTTP): 請求 - response (HTTP): 回應 - path operation: 路徑操作 - path operation function: 路徑操作函式 The translation can optionally include the original English text only in the first occurrence of each page (e.g. "路徑操作 (path operation)") if the translation is hard to be comprehended by most of the Chinese readers.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:49:46 GMT 2025 - 2.2K bytes - Click Count (0) -
fastapi/dependencies/utils.py
and param_details.depends.scope == "function" ): assert dependant.call raise DependencyScopeError( f'The dependency "{dependant.call.__name__}" has a scope of ' '"request", it cannot depend on dependencies with scope "function".' ) sub_own_oauth_scopes: list[str] = []Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
docs/de/llm-prompt.md
* «the mounting»: «das Mounten» * «mounted»: «gemountet» * «the origin»: «das Origin» * «the override»: «Die Überschreibung» * «the parameter»: «der Parameter» * «the parameters» (plural): «die Parameter» * «the function parameter»: «der Funktionsparameter» * «the default parameter»: «der Defaultparameter» * «the body parameter»: «der Body-Parameter» * «the request body parameter»: «der Requestbody-Parameter»
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 09:39:53 GMT 2025 - 11.9K bytes - Click Count (0)