Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for 19 (0.15 sec)

  1. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Как это использовать
    
    Теперь вы можете объявить свою зависимость, используя этот класс.
    
    === "Python 3.10+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="20"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 12 11:12:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    * 기본값이 `100`이면서 `정수형`인 쿼리 매개변수 `limit`
    
    두 가지 방식 모두, 데이터는 변환, 검증되고 OpenAPI 스키마에 문서화됩니다.
    
    ## 사용해봅시다!
    
    이제 아래의 클래스를 이용해서 의존성을 정의할 수 있습니다.
    
    === "파이썬 3.6 이상"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002.py!}
        ```
    
    === "파이썬 3.10 이상"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial002_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Verwendung
    
    Jetzt können Sie Ihre Abhängigkeit mithilfe dieser Klasse deklarieren.
    
    === "Python 3.10+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    どちらの場合も以下を持っています:
    
    * オプショナルの`q`クエリパラメータ。
    * `skip`クエリパラメータ、デフォルトは`0`。
    * `limit`クエリパラメータ、デフォルトは`100`。
    
    どちらの場合も、データは変換され、検証され、OpenAPIスキーマなどで文書化されます。
    
    ## 使用
    
    これで、このクラスを使用して依存関係を宣言することができます。
    
    ```Python hl_lines="19"
    {!../../../docs_src/dependencies/tutorial002.py!}
    ```
    
    **FastAPI** は`CommonQueryParams`クラスを呼び出します。これにより、そのクラスの「インスタンス」が作成され、インスタンスはパラメータ`commons`として関数に渡されます。
    
    ## 型注釈と`Depends`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 16:08:16 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Use it
    
    Now you can declare your dependency using this class.
    
    === "Python 3.10+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md

    现在,您可以使用这个类来声明你的依赖项了。
    
    === "Python 3.10+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial002_py310.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002.py!}
        ```
    
    **FastAPI** 调用 `CommonQueryParams` 类。这将创建该类的一个 "实例",该实例将作为参数 `commons` 被传递给你的函数。
    
    ## 类型注解 vs `Depends`
    
    注意,我们在上面的代码中编写了两次`CommonQueryParams`:
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/dependencies/classes-as-dependencies.md

    *  `limit` 🔢 🔢 👈 `int`, ⏮️ 🔢 `100`.
    
    👯‍♂️ 💼 💽 🔜 🗜, ✔, 📄 🔛 🗄 🔗, ♒️.
    
    ## ⚙️ ⚫️
    
    🔜 👆 💪 📣 👆 🔗 ⚙️ 👉 🎓.
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial002_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top