- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 1,131 for defs (0.03 seconds)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/DomBuilder.groovy
Document document Node parent List elements = [] def DomBuilder(Document document) { this.document = document this.parent = document } def DomBuilder(Node parent) { this.document = parent.ownerDocument this.parent = parent } def DomBuilder(Document document, Node parent) { this.document = document this.parent = parentCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.7K bytes - Click Count (0) -
tests/test_response_by_alias.py
def by_alias_dict(): return {"alias": "Foo"} @app.get("/by-alias/model", response_model=Model) def by_alias_model(): return Model(alias="Foo") @app.get("/by-alias/list", response_model=list[Model]) def by_alias_list(): return [{"alias": "Foo"}, {"alias": "Bar"}] @app.get("/no-alias/dict", response_model=ModelNoAlias) def no_alias_dict(): return {"name": "Foo"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 11.7K bytes - Click Count (0) -
docs/fr/docs/deployment/concepts.md
/// tip | Astuce Je vous donnerai des exemples plus concrets pour faire cela avec des conteneurs dans un chapitre à venir : [FastAPI dans des conteneurs - Docker](docker.md). /// ## Utilisation des ressources { #resource-utilization } Votre ou vos serveurs constituent une **ressource** que vos programmes peuvent consommer ou **utiliser** : le temps de calcul des CPU et la mémoire RAM disponible.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 21.4K bytes - Click Count (0) -
tests/test_request_params/test_file/test_list.py
# Without aliases @app.post("/list-bytes", operation_id="list_bytes") async def read_list_bytes(p: Annotated[list[bytes], File()]): return {"file_size": [len(file) for file in p]} @app.post("/list-uploadfile", operation_id="list_uploadfile") async def read_list_uploadfile(p: Annotated[list[UploadFile], File()]): return {"file_size": [file.size for file in p]}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 11.6K bytes - Click Count (0) -
tests/test_request_params/test_header/test_list.py
# Without aliases @app.get("/required-list-str") async def read_required_list_str(p: Annotated[list[str], Header()]): return {"p": p} class HeaderModelRequiredListStr(BaseModel): p: list[str] @app.get("/model-required-list-str") def read_model_required_list_str(p: Annotated[HeaderModelRequiredListStr, Header()]): return {"p": p.p}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 11.3K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
from pydantic.v1 import BaseModel def test_raises_pydantic_v1_model_in_endpoint_param() -> None: class ParamModelV1(BaseModel): name: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError): @app.post("/param") def endpoint(data: ParamModelV1): # pragma: no cover return data def test_raises_pydantic_v1_model_in_return_type() -> None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
tests/test_dependency_after_yield_raise.py
class CustomError(Exception): pass def catching_dep() -> Any: try: yield "s" except CustomError as err: raise HTTPException(status_code=418, detail="Session error") from err def broken_dep() -> Any: yield "s" raise ValueError("Broken after yield") app = FastAPI() @app.get("/catching") def catching(d: Annotated[str, Depends(catching_dep)]) -> Any:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.7K bytes - Click Count (0) -
.ci/jobs.t/elastic+elasticsearch+pull-request+packaging-tests-unix-sample.yml
description: "Testing of Elasticsearch pull requests - packaging-tests-unix-sample" project-type: matrix node: master scm: - git: refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*" branches: - "${ghprbActualCommit}" triggers: - github-pull-request: org-list: - elasticCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Jul 01 20:27:05 GMT 2021 - 1.8K bytes - Click Count (0) -
.ci/jobs.t/elastic+elasticsearch+pull-request+part-1-windows.yml
node: "windows-immutable" workspace: "C:\\Users\\jenkins\\workspace\\pr-part-1\\${BUILD_NUMBER}" scm: - git: refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*" branches: - "${ghprbActualCommit}" triggers: - github-pull-request: org-list: - elasticCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Jul 01 22:34:45 GMT 2021 - 1.7K bytes - Click Count (0) -
docs/fr/docs/tutorial/request-form-models.md
# Modèles de formulaire { #form-models } Vous pouvez utiliser des **modèles Pydantic** pour déclarer des **champs de formulaire** dans FastAPI. /// info Pour utiliser les formulaires, installez d'abord [`python-multipart`](https://github.com/Kludex/python-multipart). Assurez-vous de créer un [environnement virtuel](../virtual-environments.md), de l'activer, puis d'installer le paquet, par exemple : ```console $ pip install python-multipart ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 2.5K bytes - Click Count (0)