Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 895 for python (0.07 sec)

  1. .github/workflows/test.yml

            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v4
          - name: Set up Python
            uses: actions/setup-python@v5
            with:
              python-version: ${{ matrix.python-version }}
          - name: Setup uv
            uses: astral-sh/setup-uv@v3
            with:
              version: "0.4.15"
              enable-cache: true
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 12:27:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/generate-clients.md

    ## 生成一个 TypeScript 前端客户端
    
    让我们从一个简单的 FastAPI 应用开始:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="7-9  12-13  16-17  21"
    {!> ../../docs_src/generate_clients/tutorial001_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9-11  14-15  18  19  23"
    {!> ../../docs_src/generate_clients/tutorial001.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/body.md

    ///
    
    ## Pydanticの `BaseModel` をインポート
    
    ます初めに、 `pydantic` から `BaseModel` をインポートする必要があります:
    
    ```Python hl_lines="2"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    ## データモデルの作成
    
    そして、`BaseModel` を継承したクラスとしてデータモデルを宣言します。
    
    すべての属性にpython標準の型を使用します:
    
    ```Python hl_lines="5-9"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. docs/em/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> 🎏 🌌:
    
    ```Python hl_lines="1  7-12  19-20"
    {!../../docs_src/dataclasses/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/request-forms.md

    フォームを使うためには、まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。
    
    たとえば、`pip install python-multipart`のように。
    
    ///
    
    ## `Form`のインポート
    
    `fastapi`から`Form`をインポートします:
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## `Form`のパラメータの定義
    
    `Body`や`Query`の場合と同じようにフォームパラメータを作成します:
    
    ```Python hl_lines="7"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. docs/vi/docs/tutorial/first-steps.md

    ## Tóm lại, từng bước một
    
    ### Bước 1: import `FastAPI`
    
    ```Python hl_lines="1"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `FastAPI` là một Python class cung cấp tất cả chức năng cho API của bạn.
    
    /// note | "Chi tiết kĩ thuật"
    
    `FastAPI` là một class kế thừa trực tiếp `Starlette`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/index.md

    의존성에 집중해 봅시다.
    
    *경로 작동 함수*가 가질 수 있는 모든 매개변수를 갖는 단순한 함수입니다:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/dependencies/tutorial001_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="8-11"
    {!> ../../docs_src/dependencies/tutorial001_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9-12"
    {!> ../../docs_src/dependencies/tutorial001_an.py!}
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/bigger-applications.md

    ```
    .
    ├── app                  # "app" é um pacote Python
    │   ├── __init__.py      # este arquivo torna "app" um "pacote Python"
    │   ├── main.py          # "main" módulo, e.g. import app.main
    │   ├── dependencies.py  # "dependencies" módulo, e.g. import app.dependencies
    │   └── routers          # "routers" é um  "subpacote Python"
    │   │   ├── __init__.py  # torna "routers" um "subpacote Python"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. docs/ja/docs/index.md

    ### まとめ
    
    要約すると、関数のパラメータとして、パラメータやボディ などの型を**一度だけ**宣言します。
    
    標準的な最新の Python の型を使っています。
    
    新しい構文や特定のライブラリのメソッドやクラスなどを覚える必要はありません。
    
    単なる標準的な**3.8 以降の Python**です。
    
    例えば、`int`の場合:
    
    ```Python
    item_id: int
    ```
    
    または、より複雑な`Item`モデルの場合:
    
    ```Python
    item: Item
    ```
    
    ...そして、この一度の宣言で、以下のようになります:
    
    - 以下を含むエディタサポート:
      - 補完
      - タイプチェック
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. docs/uk/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Це звичайна функція Python.
    
    FastAPI викликатиме її щоразу, коли отримає запит до URL із шляхом "/", використовуючи операцію `GET`.
    
    У даному випадку це асинхронна функція.
    
    ---
    
    Ви також можете визначити її як звичайну функцію замість `async def`:
    
    ```Python hl_lines="7"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top