- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 307 for tutorial008b_py310 (0.13 sec)
-
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}") client = TestClient(mod.app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 11K bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial005.py
from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial005_py39"), pytest.param("tutorial005_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}") client = TestClient(mod.app) return client
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 9.6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` But you can also declare multiple body parameters, e.g. `item` and `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} In this case, **FastAPI** will notice that there is more than one body parameter in the function (there are two parameters that are Pydantic models).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 12:58:04 UTC 2025 - 4.9K bytes - Viewed (0) -
docs/de/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Aber Sie können auch mehrere Body-Parameter deklarieren, z. B. `item` und `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} In diesem Fall wird **FastAPI** bemerken, dass es mehr als einen Body-Parameter in der Funktion gibt (zwei Parameter, die Pydantic-Modelle sind).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 5.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial002_an.py hl[14, 16, 23, 26] *} //// //// tab | Python 3.10+ 没Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// {* ../../docs_src/background_tasks/tutorial002_py310.py hl[11, 13, 20, 23] *} //// //// tab | Python 3.8+ 没Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// {* ../../docs_src/background_tasks/tutorial002.py hl[13, 15, 22, 25] *} ////Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 4.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Но вы также можете объявить множество параметров тела запроса, например `item` и `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} В этом случае **FastAPI** заметит, что в функции есть более одного параметра тела (два параметра, которые являются Pydantic-моделями).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 8.3K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response: {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *} /// note | Technical Details You could also use `from starlette.responses import JSONResponse`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/uk/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Але Ви також можете оголосити декілька параметрів тіла, наприклад `item` та `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} У цьому випадку **FastAPI** розпізнає, що є кілька параметрів тіла (два параметри є моделями Pydantic). Тому він використає назви параметрів як ключі (назви полів) у тілі запиту, очікуючи: ```JSON
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:19:00 UTC 2025 - 7.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-multiple-params.md
"description": "The pretender", "price": 42.0, "tax": 3.2 } ``` Mas você pode também declarar múltiplos parâmetros de corpo, por exemplo, `item` e `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} Neste caso, o **FastAPI** perceberá que existe mais de um parâmetro de corpo na função (dois parâmetros que são modelos Pydantic).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.4K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
**FastAPI** ermöglicht es Ihnen, zusätzliche Informationen und Validierungen für Ihre Parameter zu deklarieren. Nehmen wir diese Anwendung als Beispiel: {* ../../docs_src/query_params_str_validations/tutorial001_py310.py hl[7] *} Der Query-Parameter `q` hat den Typ `str | None`, das bedeutet, dass er vom Typ `str` sein kann, aber auch `None`, und tatsächlich ist der Defaultwert `None`, sodass FastAPI weiß, dass er nicht erforderlich ist.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 19.1K bytes - Viewed (0)