- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 1,436 for nine (0.01 seconds)
-
docs_src/response_model/tutorial001_py39.py
from typing import Any, Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: list[str] = [] @app.post("/items/", response_model=Item) async def create_item(item: Item) -> Any: return item @app.get("/items/", response_model=list[Item])
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 556 bytes - Click Count (0) -
docs/de/docs/advanced/response-cookies.md
Sie können den `Response`-Parameter auch in Abhängigkeiten deklarieren und darin Cookies (und Header) setzen. ## Eine `Response` direkt zurückgeben { #return-a-response-directly } Sie können Cookies auch erstellen, wenn Sie eine `Response` direkt in Ihrem Code zurückgeben. Dazu können Sie eine Response erstellen, wie unter [Eine Response direkt zurückgeben](response-directly.md){.internal-link target=_blank} beschrieben.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.7K bytes - Click Count (0) -
docs_src/body/tutorial002_py310.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.model_dump() if item.tax is not None: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 447 bytes - Click Count (0) -
docs_src/body/tutorial002_py39.py
from pydantic import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.model_dump() if item.tax is not None: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 485 bytes - Click Count (0) -
docs_src/additional_status_codes/tutorial001_an_py39.py
items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size return item else:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 705 bytes - Click Count (0) -
tests/test_dependency_partial.py
def gen_dependency(value: str) -> Generator[str, None, None]: yield value async def async_gen_dependency(value: str) -> AsyncGenerator[str, None]: yield value class CallableDependency: def __call__(self, value: str) -> str: return value class CallableGenDependency: def __call__(self, value: str) -> Generator[str, None, None]: yield value
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.3K bytes - Click Count (0) -
ci/official/containers/ml_build/cuda12.1_cudnn9.8.packages.txt
# All required CUDA packages cuda-compat-12-1 cuda-command-line-tools-12-1 cuda-cudart-dev-12-1 cuda-nvcc-12-1 cuda-cupti-12-1 cuda-nvprune-12-1 cuda-libraries-12-1 cuda-libraries-dev-12-1 cuda-nvml-dev-12-1 libcufft-12-1 libcurand-12-1 libcusolver-dev-12-1 libcusparse-dev-12-1 libcublas-12-1 libcublas-dev-12-1 libnccl-dev=2.18.3-1+cuda12.1 libnccl2=2.18.3-1+cuda12.1
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Fri Mar 21 01:02:41 GMT 2025 - 534 bytes - Click Count (0) -
ci/official/containers/ml_build/cuda12.3_cudnn9.1.packages.txt
# All required CUDA packages cuda-compat-12-3 cuda-command-line-tools-12-3 cuda-cudart-dev-12-3 cuda-nvcc-12-3 cuda-cupti-12-3 cuda-nvprune-12-3 cuda-libraries-12-3 cuda-libraries-dev-12-3 cuda-nvml-dev-12-3 libcufft-12-3 libcurand-12-3 libcusolver-dev-12-3 libcusparse-dev-12-3 libcublas-12-3 libcublas-dev-12-3 libnccl-dev=2.19.3-1+cuda12.3 libnccl2=2.19.3-1+cuda12.3
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Tue Feb 18 20:42:21 GMT 2025 - 535 bytes - Click Count (3) -
tests/test_params_repr.py
from fastapi.params import Body, Cookie, Header, Param, Path, Query test_data: list[Any] = ["teststr", None, ..., 1, []] def get_user(): return {} # pragma: no cover def test_param_repr_str(): assert repr(Param("teststr")) == "Param(teststr)" def test_param_repr_none(): assert repr(Param(None)) == "Param(None)" def test_param_repr_ellipsis(): assert repr(Param(...)) == "Param(PydanticUndefined)"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 2.3K bytes - Click Count (0) -
docs/de/docs/tutorial/body-nested-models.md
Beachten Sie, dass der `images`-Schlüssel jetzt eine Liste von Bild-Objekten hat. /// ## Tief verschachtelte Modelle { #deeply-nested-models } Sie können beliebig tief verschachtelte Modelle definieren: {* ../../docs_src/body_nested_models/tutorial007_py310.py hl[7,12,18,21,25] *} /// info | Info Beachten Sie, wie `Offer` eine Liste von `Item`s hat, die ihrerseits eine optionale Liste von `Image`s haben. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.6K bytes - Click Count (0)