Search Options

Results per page
Sort
Preferred Languages
Advance

Results 581 - 590 of 873 for Pythona (0.3 sec)

  1. docs/zh/docs/advanced/templates.md

    </div>
    
    ## 使用 `Jinja2Templates`
    
    * 导入 `Jinja2Templates`
    * 创建可复用的 `templates` 对象
    * 在返回模板的*路径操作*中声明 `Request` 参数
    * 使用 `templates` 渲染并返回 `TemplateResponse`, 传递模板的名称、request对象以及一个包含多个键值对(用于Jinja2模板)的"context"字典,
    
    ```Python hl_lines="4  11  15-16"
    {!../../docs_src/templates/tutorial001.py!}
    ```
    
    /// note | "笔记"
    
    在FastAPI 0.108.0,Starlette 0.29.0之前,`name`是第一个参数。
    并且,在此之前,`request`对象是作为context的一部分以键值对的形式传递的。
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. ci/official/containers/linux_arm64/devel.usertools/rename_and_verify_wheels.sh

    # Check and rename wheels with auditwheel. Inserts the platform tags like
    # "manylinux_xyz" into the wheel filename.
    set -euxo pipefail
    
    for wheel in /tf/pkg/*.whl; do
      echo "Checking and renaming $wheel..."
      time python3 -m auditwheel repair --plat manylinux2014_aarch64 "$wheel" --wheel-dir /tf/pkg 2>&1 | tee check.txt
    
      # We don't need the original wheel if it was renamed
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Sep 18 19:00:37 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. docs/en/docs/reference/background.md

    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import BackgroundTasks
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 377 bytes
    - Viewed (0)
  4. docs/zh/docs/project-generation.md

    ## FastAPI全栈模板 - 技术栈和特性
    
    - ⚡ [**FastAPI**](https://fastapi.tiangolo.com) 用于Python后端API.
        - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) 用于Python和SQL数据库的集成(ORM)。
        - 🔍 [Pydantic](https://docs.pydantic.dev) FastAPI的依赖项之一,用于数据验证和配置管理。
        - 💾 [PostgreSQL](https://www.postgresql.org) 作为SQL数据库。
    - 🚀 [React](https://react.dev) 用于前端。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Oct 04 11:16:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. docs/ja/docs/contributing.md

    ## 開発
    
    すでにリポジトリをクローンし、コードを詳しく調べる必要があるとわかっている場合に、環境構築のためのガイドラインをいくつか紹介します。
    
    ### `venv`を使用した仮想環境
    
    Pythonの`venv`モジュールを使用して、ディレクトリに仮想環境を作成します:
    
    <div class="termy">
    
    ```console
    $ python -m venv env
    ```
    
    </div>
    
    これにより、Pythonバイナリを含む`./env/`ディレクトリが作成され、その隔離された環境にパッケージのインストールが可能になります。
    
    ### 仮想環境の有効化
    
    新しい環境を有効化するには:
    
    //// tab | Linux, macOS
    
    <div class="termy">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. tensorflow/BUILD

    load(
        "//tensorflow/python/tools/api/generator:api_gen.bzl",
        "get_compat_files",
        "get_nested_compat_files",
    )
    load(
        "//tensorflow/python/tools/api/generator:api_init_files.bzl",
        "TENSORFLOW_API_INIT_FILES",
    )
    load(
        "//tensorflow/python/tools/api/generator:api_init_files_v1.bzl",
        "TENSORFLOW_API_INIT_FILES_V1",
    )
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 05:28:35 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/response-status-code.md

    ///
    
    ## 이름을 기억하는 쉬운 방법
    
    상기 예시 참고:
    
    ```Python hl_lines="6"
    {!../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    `201` 은 "생성됨"를 의미하는 상태 코드입니다.
    
    하지만 모든 상태 코드들이 무엇을 의미하는지 외울 필요는 없습니다.
    
    `fastapi.status` 의 편의 변수를 사용할 수 있습니다.
    
    ```Python hl_lines="1  6"
    {!../../docs_src/response_status_code/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/testing-websockets.md

    # Testando WebSockets
    
    Você pode usar o mesmo `TestClient` para testar WebSockets.
    
    Para isso, você utiliza o `TestClient` dentro de uma instrução `with`, conectando com o WebSocket:
    
    ```Python hl_lines="27-31"
    {!../../docs_src/app_testing/tutorial002.py!}
    ```
    
    /// note | "Nota"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 488 bytes
    - Viewed (0)
  9. ci/official/containers/ml_build/README.md

    WIP ML Build Docker container for ML repositories (Tensorflow, JAX and XLA).
    
    This container branches off from
    /tensorflow/tools/tf_sig_build_dockerfiles/. However, since
    hermetic CUDA and hermetic Python is now available for Tensorflow, a lot of the
    requirements installed on the original container can be removed to reduce the
    footprint of the container and make it more reusable across different ML
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Sep 24 20:45:58 UTC 2024
    - 416 bytes
    - Viewed (0)
  10. docs/en/docs/advanced/sub-applications.md

    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Sub-application
    
    Then, create your sub-application, and its *path operations*.
    
    This sub-application is just another standard FastAPI application, but this is the one that will be "mounted":
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top