Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 707 for Python (0.14 sec)

  1. docs/zh/docs/advanced/dataclasses.md

    # 使用数据类
    
    FastAPI 基于 **Pydantic** 构建,前文已经介绍过如何使用 Pydantic 模型声明请求与响应。
    
    但 FastAPI 还可以使用数据类(<a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a>):
    
    {* ../../docs_src/dataclasses_/tutorial001.py hl[1,7:12,19:20] *}
    
    这还是借助于 **Pydantic** 及其<a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/#use-of-stdlib-dataclasses-with-basemodel" class="external-link" target="_blank">内置的 `dataclasses`</a>。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. docs/zh/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note
    
    命令 `uvicorn main:app` 的含义如下:
    
    * `main`:指的是 `main.py` 文件(即 Python “模块”)。
    * `app`:指的是 `main.py` 文件中通过 `app = FastAPI()` 创建的对象。
    
    它等价于以下导入语句:
    
    ```Python
    from main import app
    ```
    
    ///
    
    每种 ASGI 服务器程序通常都会有类似的命令,您可以在它们的官方文档中找到更多信息。
    
    /// warning
    
    Uvicorn 和其他服务器支持 `--reload` 选项,该选项在开发过程中非常有用。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/dependencies/index.md

    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    Но поскольку мы используем `Annotated`, мы можем сохранить это значение `Annotated` в переменную и использовать его в нескольких местах:
    
    {* ../../docs_src/dependencies/tutorial001_02_an_py310.py hl[12,16,21] *}
    
    /// tip | Подсказка
    
    Это стандартный Python, это называется «type alias», и это не особенность **FastAPI**.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 15.4K bytes
    - Viewed (1)
  4. docs/pt/docs/how-to/graphql.md

        * Com <a href="https://tartiflette.github.io/tartiflette-asgi/" class="external-link" target="_blank">Tartiflette ASGI</a> para fornecer integração ASGI
    * <a href="https://graphene-python.org/" class="external-link" target="_blank">Graphene</a>
        * Com <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.6K bytes
    - Viewed (0)
  5. docs/en/docs/reference/parameters.md

    It includes:
    
    * `Query()`
    * `Path()`
    * `Body()`
    * `Cookie()`
    * `Header()`
    * `Form()`
    * `File()`
    
    You can import them all directly from `fastapi`:
    
    ```python
    from fastapi import Body, Cookie, File, Form, Header, Path, Query
    ```
    
    ::: fastapi.Query
    
    ::: fastapi.Path
    
    ::: fastapi.Body
    
    ::: fastapi.Cookie
    
    ::: fastapi.Header
    
    ::: fastapi.Form
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 603 bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/middleware.md

    {* ../../docs_src/middleware/tutorial001_py39.py hl[10,12:13] *}
    
    /// tip | Примечание
    
    Мы используем <a href="https://docs.python.org/3/library/time.html#time.perf_counter" class="external-link" target="_blank">`time.perf_counter()`</a> вместо `time.time()` для обеспечения большей точности наших примеров. 🤓
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/response-status-code.md

    ///
    
    Параметр `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>.
    
    ///
    
    Він буде:
    
    * Повертати вказаний код статусу у відповіді.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Mar 19 17:04:17 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. docs/de/llm-prompt.md

    * «Starlette's Y»: «Starlettes Y»
    * «X is case-sensitive»: «Groß-/Klein­schrei­bung ist relevant in X»
    * «X is case-insensitive»: «Groß-/Klein­schrei­bung ist nicht relevant in X»
    * «standard Python»: «Standard-Python»
    * «deprecated»: «deprecatet»
    
    
    ### Other rules
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. docs/en/docs/reference/request.md

    You can declare a parameter in a *path operation function* or dependency to be of type `Request` and then you can access the raw request object directly, without any validation, etc.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Request
    ```
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 518 bytes
    - Viewed (0)
  10. ci/official/utilities/cleanup_summary.sh

    # Each failed target there will have its own representation, making failures
    # easier to find and read.
    function resultstore_extract {
      local PYTHON_BIN XML_PATH
      PYTHON_BIN=$(which python3 2>/dev/null || which python)
      XML_PATH="$TFCI_OUTPUT_DIR/Bazel_Test_and_Build_Results/sponge_log.xml"
    
      "$PYTHON_BIN" \
        "$TFCI_GIT_DIR/ci/official/utilities/extract_resultstore_links.py" \
        "$TFCI_OUTPUT_DIR/script.log" \
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Jan 09 18:37:25 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top