Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 263 for tutorial004_an_py39 (0.72 sec)

  1. docs/zh/docs/tutorial/body-multiple-params.md

    ## 多个请求体参数和查询参数
    
    当然,除了请求体参数外,你还可以在任何需要的时候声明额外的查询参数。
    
    由于默认情况下单一值被解释为查询参数,因此你不必显式地添加 `Query`,你可以仅执行以下操作:
    
    ```Python
    q: str = None
    ```
    
    比如:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[27] *}
    
    /// info
    
    `Body` 同样具有与 `Query`、`Path` 以及其他后面将看到的类完全相同的额外校验和元数据参数。
    
    ///
    
    ## 嵌入单个请求体参数
    
    假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。
    
    默认情况下,**FastAPI** 将直接期望这样的请求体。
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial008_an_py39.py hl[6,14,22] *}
    
    이들 모두는 `yield`를 사용할 수 있습니다.
    
    이 경우 `dependency_c`는 종료 코드를 실행하기 위해, `dependency_b`의 값 (여기서는 `dep_b`로 명명)이 여전히 사용 가능해야 합니다.
    
    그리고, `dependency_b`는 종료 코드를 위해 `dependency_a`의 값 (여기서는 `dep_a`로 명명) 이 사용 가능해야 합니다.
    
    {* ../../docs_src/dependencies/tutorial008_an_py39.py hl[18:19,26:27] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Feb 09 14:54:09 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/first-steps.md

    但为了节省开发者的时间,不要只为了查找很少的内容,不得不阅读冗长的规范文档。
    
    我们建议使用 **FastAPI** 的安全工具。
    
    ## 概览
    
    首先,看看下面的代码是怎么运行的,然后再回过头来了解其背后的原理。
    
    ## 创建 `main.py`
    
    把下面的示例代码复制到 `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## 运行
    
    /// info | 说明
    
    先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
    安装命令: `pip install python-multipart`。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py hl[4,18] *}
    
    ### Migra por pasos { #migrate-in-steps }
    
    /// tip | Consejo
    
    Primero prueba con `bump-pydantic`; si tus tests pasan y eso funciona, entonces terminaste con un solo comando. ✨
    
    ///
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:16:35 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_tutorial002.py

        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        clear_sqlmodel()
        # TODO: remove when updating SQL tutorial to use new lifespan API
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/schema-extra-example.md

    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` com vários `examples` { #body-with-multiple-examples }
    
    Você também pode, é claro, passar vários `examples`:
    
    {* ../../docs_src/schema_extra_example/tutorial004_an_py310.py hl[23:38] *}
    
    Quando fizer isso, os exemplos farão parte do **JSON Schema** interno para esses dados do body.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/schema-extra-example.md

    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` con múltiples `examples` { #body-with-multiple-examples }
    
    Por supuesto, también puedes pasar múltiples `examples`:
    
    {* ../../docs_src/schema_extra_example/tutorial004_an_py310.py hl[23:38] *}
    
    Cuando haces esto, los ejemplos serán parte del **JSON Schema** interno para esos datos de body.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py hl[4,18] *}
    
    ### Migre em etapas { #migrate-in-steps }
    
    /// tip | Dica
    
    Primeiro tente com o `bump-pydantic`; se seus testes passarem e isso funcionar, então você concluiu tudo com um único comando. ✨
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. docs/uk/docs/tutorial/schema-extra-example.md

    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` з кількома `examples`
    
    Звичайно, Ви також можете передати кілька `examples`:
    
    {* ../../docs_src/schema_extra_example/tutorial004_an_py310.py hl[23:38] *}
    
    Коли Ви це робите, приклади будуть частиною внутрішньої **JSON-схеми** для цих даних.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Jun 09 19:35:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/schema-extra-example.md

    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` mit mehreren `examples` { #body-with-multiple-examples }
    
    Sie können natürlich auch mehrere `examples` übergeben:
    
    {* ../../docs_src/schema_extra_example/tutorial004_an_py310.py hl[23:38] *}
    
    Wenn Sie das tun, werden die Beispiele Teil des internen **JSON-Schemas** für diese Body-Daten.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top