Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 645 for Pythons (0.82 sec)

  1. fastapi/param_functions.py

                This will be used to extract the data and for the generated OpenAPI.
                It is particularly useful when you can't use the name you want because it
                is a Python reserved keyword or similar.
                """
            ),
        ] = None,
        alias_priority: Annotated[
            Union[int, None],
            Doc(
                """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/path-params-numeric-validations.md

    但是你仍然需要使用 `Path` 来声明路径参数 `item_id`。
    
    如果你将带有「默认值」的参数放在没有「默认值」的参数之前,Python 将会报错。
    
    但是你可以对其重新排序,并将不带默认值的值(查询参数 `q`)放到最前面。
    
    对 **FastAPI** 来说这无关紧要。它将通过参数的名称、类型和默认值声明(`Query`、`Path` 等)来检测参数,而不在乎参数的顺序。
    
    因此,你可以将函数声明为:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *}
    
    ## 按需对参数排序的技巧
    
    如果你想不使用 `Query` 声明没有默认值的查询参数 `q`,同时使用 `Path` 声明路径参数 `item_id`,并使它们的顺序与上面不同,Python 对此有一些特殊的语法。
    
    传递 `*` 作为函数的第一个参数。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/response-status-code.md

    /// note | 笔记
    
    注意,`status_code` 是(`get`、`post` 等)**装饰器**方法中的参数。与之前的参数和请求体不同,不是*路径操作函数*的参数。
    
    ///
    
    `status_code` 参数接收表示 HTTP 状态码的数字。
    
    /// info | 说明
    
    `status_code` 还能接收 `IntEnum` 类型,比如 Python 的 <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>。
    
    ///
    
    它可以:
    
    * 在响应中返回状态码
    * 在 OpenAPI 概图(及用户界面)中存档:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. docs/de/docs/project-generation.md

    ## Full Stack FastAPI Template – Technologiestack und Funktionen { #full-stack-fastapi-template-technology-stack-and-features }
    
    - ⚡ [**FastAPI**](https://fastapi.tiangolo.com/de) für die Python-Backend-API.
      - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) für die Interaktion mit der Python-SQL-Datenbank (ORM).
      - 🔍 [Pydantic](https://docs.pydantic.dev), verwendet von FastAPI, für die Datenvalidierung und das Einstellungsmanagement.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. docs/ru/docs/project-generation.md

    - ⚡ [**FastAPI**](https://fastapi.tiangolo.com/ru) для бэкенд‑API на Python.
        - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) для взаимодействия с SQL‑базой данных на Python (ORM).
        - 🔍 [Pydantic](https://docs.pydantic.dev), используется FastAPI, для валидации данных и управления настройками.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. docs/es/docs/advanced/events.md

    Un **context manager** en Python es algo que puedes usar en un statement `with`, por ejemplo, `open()` puede ser usado como un context manager:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    En versiones recientes de Python, también hay un **async context manager**. Lo usarías con `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. scripts/translate.py

    Examples:
    
        Source (English):
    
            «««
            //// tab | Python 3.8+ non-Annotated
            Hello
            ////
            »»»
    
        Result (German):
    
            «««
            //// tab | Python 3.8+ nicht annotiert
            Hallo
            ////
            »»»
    
        Source (English) – Here there is nothing to translate in the tab title:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  8. docs/de/docs/how-to/graphql.md

        * Mit <a href="https://tartiflette.github.io/tartiflette-asgi/" class="external-link" target="_blank">Tartiflette ASGI</a> für ASGI-Integration
    * <a href="https://graphene-python.org/" class="external-link" target="_blank">Graphene</a>
        * Mit <a href="https://github.com/ciscorn/starlette-graphene3" class="external-link" target="_blank">starlette-graphene3</a>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/security/first-steps.md

    把下面的示例代码复制到 `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`。
    
    这是因为 **OAuth2** 使用**表单数据**发送 `username` 与 `password`。
    
    ///
    
    用下面的命令运行该示例:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/dependencies/index.md

    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    Da wir jedoch `Annotated` verwenden, können wir diesen `Annotated`-Wert in einer Variablen speichern und an mehreren Stellen verwenden:
    
    {* ../../docs_src/dependencies/tutorial001_02_an_py310.py hl[12,16,21] *}
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top