- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 177 for tutorial001_01_py310 (0.35 sec)
-
docs/de/docs/how-to/custom-request-and-route.md
Auf diese Weise kann dieselbe Routenklasse gzip-komprimierte oder unkomprimierte Requests verarbeiten. {* ../../docs_src/custom_request_and_route/tutorial001_an_py310.py hl[9:16] *} ### Eine benutzerdefinierte `GzipRoute`-Klasse erstellen { #create-a-custom-gziproute-class }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 13:54:34 UTC 2025 - 5.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/cookie-params.md
Primeiro importe `Cookie`: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *} ## Declare parâmetros de `Cookie` { #declare-cookie-parameters } Então declare os parâmetros de cookie usando a mesma estrutura que em `Path` e `Query`. Você pode definir o valor padrão, assim como todas as validações extras ou parâmetros de anotação: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | Detalhes TécnicosRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 1.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/header-params.md
Спочатку імпортуйте `Header`: {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *} ## Оголошення параметрів `Header` Потім оголосіть параметри заголовків, використовуючи ту ж структуру, що й для `Path`, `Query` та `Cookie`. Ви можете визначити значення за замовчуванням, а також усі додаткові параметри валідації або анотації: {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *} /// note | Технічні деталіRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 22 22:02:19 UTC 2025 - 4.4K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_01.py
from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial003_01_py39"), pytest.param("tutorial003_01_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.response_model.{request.param}") client = TestClient(mod.app) return client
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 5.9K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[48:55] hl[51:52,54] *} ### Read One Hero { #read-one-hero } We can **read** a single `Hero`. {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[58:63] hl[60] *} ### Delete a Hero { #delete-a-hero } We can also **delete** a `Hero`. {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[66:73] hl[71] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 05:06:56 UTC 2025 - 15.8K bytes - Viewed (0) -
docs/de/docs/tutorial/sql-databases.md
{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *} ### Die Datenbanktabellen beim Start erstellen { #create-database-tables-on-startup } Wir werden die Datenbanktabellen erstellen, wenn die Anwendung startet. {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[32:37] hl[35:37] *} Hier erstellen wir die Tabellen bei einem Anwendungsstart-Event.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 17:32:56 UTC 2025 - 18.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-fields.md
## 导入 `Field` 首先,从 Pydantic 中导入 `Field`: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | 警告 注意,与从 `fastapi` 导入 `Query`,`Path`、`Body` 不同,要直接从 `pydantic` 导入 `Field` 。 /// ## 声明模型属性 然后,使用 `Field` 定义模型的属性: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *} `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。 /// note | 技术细节Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/index.md
### Импорт `Depends` { #import-depends } {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *} ### Объявите зависимость в «зависимом» { #declare-the-dependency-in-the-dependant } Точно так же, как вы используете `Body`, `Query` и т. д. с параметрами вашей *функции обработки пути*, используйте `Depends` с новым параметром: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 15.4K bytes - Viewed (1) -
docs/ru/docs/tutorial/extra-data-types.md
{* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *} Обратите внимание, что параметры внутри функции имеют свой естественный тип данных, и вы, например, можете выполнять обычные манипуляции с датами, такие как:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 4.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[21:22] hl[21:22] *} ### 创建会话(Session)依赖项 **`Session`** 会存储**内存中的对象**并跟踪数据中所需更改的内容,然后它**使用 `engine`** 与数据库进行通信。 我们会使用 `yield` 创建一个 FastAPI **依赖项**,为每个请求提供一个新的 `Session` 。这确保我们每个请求使用一个单独的会话。🤓 然后我们创建一个 `Annotated` 的依赖项 `SessionDep` 来简化其他也会用到此依赖的代码。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *} ### 在启动时创建数据库表Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Dec 15 17:11:14 UTC 2024 - 14.9K bytes - Viewed (0)