- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 980 for tutorial004_py310 (0.24 seconds)
-
docs/uk/docs/python-types.md
{* ../../docs_src/python_types/tutorial003_py310.py hl[1] *} Оскільки редактор знає типи змінних, ви не тільки отримаєте автозаповнення, ви також отримаєте перевірку помилок: <img src="/img/python-types/image04.png"> Тепер ви знаєте, щоб виправити це, вам потрібно перетворити `age` у строку за допомогою `str(age)`: {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 17.4K bytes - Click Count (0) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
from fastapi.testclient import TestClient from inline_snapshot import snapshot from tests.utils import needs_py310, workdir_lock @pytest.fixture( name="client", params=[ pytest.param("tutorial004_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.additional_responses.{request.param}") client = TestClient(mod.app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 10:53:47 GMT 2026 - 5.5K bytes - Click Count (0) -
docs/es/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 17.1K bytes - Click Count (0) -
docs/de/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Obwohl unsere *Pfadoperation-Funktion* hier denselben `user` von der Eingabe zurückgibt, der das Passwort enthält: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 17.5K bytes - Click Count (0) -
docs/es/docs/tutorial/body.md
{* ../../docs_src/body/tutorial003_py310.py hl[15:16] *} ## Request body + path + parámetros de query { #request-body-path-query-parameters } También puedes declarar parámetros de **body**, **path** y **query**, todos al mismo tiempo. **FastAPI** reconocerá cada uno de ellos y tomará los datos del lugar correcto. {* ../../docs_src/body/tutorial004_py310.py hl[16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 6.9K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial004.py
import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial004_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app) return client
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/ru/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### Получение *значения перечисления* { #get-the-enumeration-value } Можно получить фактическое значение (в данном случае - `str`) с помощью `model_name.value` или в общем случае `your_enum_member.value`: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | ПодсказкаCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 14K bytes - Click Count (0) -
docs/tr/docs/tutorial/extra-models.md
## Model Listesi { #list-of-models } Aynı şekilde, nesne listesi döndüren response'ları da tanımlayabilirsiniz. Bunun için standart Python `list`'i kullanın: {* ../../docs_src/extra_models/tutorial004_py310.py hl[18] *} ## Rastgele `dict` ile Response { #response-with-arbitrary-dict } Bir Pydantic modeli kullanmadan, sadece key ve value type'larını belirterek düz, rastgele bir `dict` ile de response tanımlayabilirsiniz.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 7.4K bytes - Click Count (0) -
docs/tr/docs/tutorial/body.md
{* ../../docs_src/body/tutorial003_py310.py hl[15:16] *} ## Request body + path + query parametreleri { #request-body-path-query-parameters } **body**, **path** ve **query** parametrelerini aynı anda da tanımlayabilirsiniz. **FastAPI** bunların her birini tanır ve veriyi doğru yerden alır. {* ../../docs_src/body/tutorial004_py310.py hl[16] *} Fonksiyon parametreleri şu şekilde tanınır:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/pt/docs/advanced/additional-responses.md
``` Você pode utilizar essa técnica para reutilizar alguns retornos predefinidos nas suas *operações de rota* e combiná-las com personalizações adicionais. Por exemplo: {* ../../docs_src/additional_responses/tutorial004_py310.py hl[11:15,24] *} ## Mais informações sobre retornos OpenAPI { #more-information-about-openapi-responses }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.4K bytes - Click Count (0)