- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 617 for Annotated (0.06 sec)
-
docs_src/request_forms_and_files/tutorial001_an.py
from fastapi import FastAPI, File, Form, UploadFile from typing_extensions import Annotated app = FastAPI() @app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 396 bytes - Viewed (0) -
docs/fr/docs/tutorial/body-multiple-params.md
``` //// //// tab | Python 3.10+ non-Annotated /// tip Préférez utiliser la version `Annotated` si possible. /// ```Python hl_lines="17-19" {!> ../../docs_src/body_multiple_params/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip Préférez utiliser la version `Annotated` si possible. /// ```Python hl_lines="19-21"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.5K bytes - Viewed (0) -
docs_src/dependencies/tutorial005_an_py310.py
from typing import Annotated from fastapi import Cookie, Depends, FastAPI app = FastAPI() def query_extractor(q: str | None = None): return q def query_or_cookie_extractor( q: Annotated[str, Depends(query_extractor)], last_query: Annotated[str | None, Cookie()] = None, ): if not q: return last_query return q @app.get("/items/") async def read_query(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 510 bytes - Viewed (0) -
docs/pt/docs/advanced/advanced-dependencies.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="11" {!> ../../docs_src/dependencies/tutorial011_an.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip | "Dica" Prefira utilizar a versão `Annotated` se possível. /// ```Python hl_lines="10" {!> ../../docs_src/dependencies/tutorial011.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0) -
fastapi/exceptions.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 4.9K bytes - Viewed (0) -
fastapi/datastructures.py
``` """ file: Annotated[ BinaryIO, Doc("The standard Python file object (non-async)."), ] filename: Annotated[Optional[str], Doc("The original file name.")] size: Annotated[Optional[int], Doc("The size of the file in bytes.")] headers: Annotated[Headers, Doc("The headers of the request.")] content_type: Annotated[
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
``` //// //// tab | Python 3.10+ non-Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// ```Python hl_lines="1" {!> ../../docs_src/path_params_numeric_validations/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// ```Python hl_lines="3"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
``` //// //// tab | Python 3.10+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="2 74" {!> ../../docs_src/security/tutorial003_py310.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="4 76"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12.3K bytes - Viewed (0) -
docs_src/request_files/tutorial001_03_an.py
from fastapi import FastAPI, File, UploadFile from typing_extensions import Annotated app = FastAPI() @app.post("/files/") async def create_file(file: Annotated[bytes, File(description="A file read as bytes")]): return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file( file: Annotated[UploadFile, File(description="A file read as UploadFile")], ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 431 bytes - Viewed (0)