Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 506 for Dict (0.02 sec)

  1. docs/zh/docs/features.md

    
    
    ### 简洁
    
    任何类型都有合理的**默认值**,任何和地方都有可选配置。所有的参数被微调,来满足你的需求,定义成你需要的 API。
    
    但是默认情况下,一切都能**“顺利工作”**。
    
    ### 验证
    
    * 校验大部分(甚至所有?)的 Python **数据类型**,包括:
        * JSON 对象 (`dict`).
        * JSON 数组 (`list`) 定义成员类型。
        * 字符串 (`str`) 字段, 定义最小或最大长度。
        * 数字 (`int`, `float`) 有最大值和最小值, 等等。
    
    * 校验外来类型, 比如:
        * URL.
        * Email.
        * UUID.
        * ...及其他.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/events.md

    ```Python hl_lines="8"
    {!../../docs_src/events/tutorial001.py!}
    ```
    
    Nesse caso, a função de manipulação de evento `startup` irá inicializar os itens do "banco de dados" (só um `dict`) com alguns valores.
    
    Você pode adicionar mais que uma função de manipulação de evento.
    
    E sua aplicação não irá começar a receber requisições até que todos os manipuladores de eventos de `startup` sejam concluídos.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/events.md

    {* ../../docs_src/events/tutorial001.py hl[8] *}
    
    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    ### `shutdown` event
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:36:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/security/oauth2-scopes.md

    {!../../docs_src/security/tutorial005.py!}
    ```
    
    🔜 ➡️ 📄 👈 🔀 🔁 🔁.
    
    ## Oauth2️⃣ 💂‍♂ ⚖
    
    🥇 🔀 👈 🔜 👥 📣 Oauth2️⃣ 💂‍♂ ⚖ ⏮️ 2️⃣ 💪 ↔, `me` & `items`.
    
    `scopes` 🔢 📨 `dict` ⏮️ 🔠 ↔ 🔑 & 📛 💲:
    
    ```Python hl_lines="62-65"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    ↩️ 👥 🔜 📣 📚 ↔, 👫 🔜 🎦 🆙 🛠️ 🩺 🕐❔ 👆 🕹-/✔.
    
    & 👆 🔜 💪 🖊 ❔ ↔ 👆 💚 🤝 🔐: `me` & `items`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/response-model.md

    ```Python hl_lines="8"
    {!> ../../docs_src/response_model/tutorial003_04_py310.py!}
    ```
    
    ////
    
    ...👉 ❌ ↩️ 🆎 ✍ 🚫 Pydantic 🆎 & 🚫 👁 `Response` 🎓 ⚖️ 🏿, ⚫️ 🇪🇺 (🙆 2️⃣) 🖖 `Response` & `dict`.
    
    ### ❎ 📨 🏷
    
    ▶️ ⚪️➡️ 🖼 🔛, 👆 5️⃣📆 🚫 💚 ✔️ 🔢 💽 🔬, 🧾, 🖥, ♒️. 👈 🎭 FastAPI.
    
    ✋️ 👆 💪 💚 🚧 📨 🆎 ✍ 🔢 🤚 🐕‍🦺 ⚪️➡️ 🧰 💖 👨‍🎨 & 🆎 ☑ (✅ ✍).
    
    👉 💼, 👆 💪 ❎ 📨 🏷 ⚡ ⚒ `response_model=None`:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. docs/ko/docs/features.md

    어느 곳에서나 선택적 구성이 가능한 모든 것에 합리적인 기본값이 설정되어 있습니다. 모든 매개변수는 여러분이 필요하거나, 원하는 API를 정의하기 위해 미세하게 조정할 수 있습니다.
    
    하지만 기본적으로 모든 것이 "그냥 작동합니다".
    
    ### 검증
    
    * 다음을 포함한, 대부분의 (혹은 모든?) 파이썬 **데이터 타입** 검증할 수 있습니다:
        * JSON 객체 (`dict`).
        * 아이템 타입을 정의하는 JSON 배열 (`list`).
        * 최소 길이와 최대 길이를 정의하는 문자열 (`str`) 필드.
        * 최솟값과 최댓값을 가지는 숫자 (`int`, `float`), 그 외.
    
    * 다음과 같이 더욱 이색적인 타입에 대해 검증할 수 있습니다:
        * URL.
        * 이메일.
        * UUID.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/path-params.md

    ///
    
    #### *Enum-Member* zurückgeben
    
    Sie können *Enum-Member* in ihrer *Pfadoperation* zurückgeben, sogar verschachtelt in einem JSON-Body (z. B. als `dict`).
    
    Diese werden zu ihren entsprechenden Werten konvertiert (in diesem Fall Strings), bevor sie zum Client übertragen werden:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. configure.py

      For the env param var_name, read from the environment or verify user input
      until receiving valid input. When done, set var_name in the environ_cp to its
      new value.
    
      Args:
        environ_cp: (Dict) copy of the os.environ.
        var_name: (String) string for name of environment variable, e.g. "TF_MYVAR".
        var_default: (String) default value string.
        ask_for_var: (String) string for how to ask for user input.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 48.2K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/security/oauth2-scopes.md

    Now let's review those changes step by step.
    
    ## OAuth2 Security scheme
    
    The first change is that now we are declaring the OAuth2 security scheme with two available scopes, `me` and `items`.
    
    The `scopes` parameter receives a `dict` with each scope as a key and the description as the value:
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[63:66] *}
    
    Because we are now declaring those scopes, they will show up in the API docs when you log-in/authorize.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/dependencies/index.md

    因此,可以把依赖项当作没有「装饰器」(即,没有 `@app.get("/some-path")` )的路径操作函数。
    
    依赖项可以返回各种内容。
    
    本例中的依赖项预期接收如下参数:
    
    * 类型为 `str` 的可选查询参数 `q`
    * 类型为 `int` 的可选查询参数 `skip`,默认值是 `0`
    * 类型为 `int` 的可选查询参数 `limit`,默认值是 `100`
    
    然后,依赖项函数返回包含这些值的 `dict`。
    
    ### 导入 `Depends`
    
    ```Python hl_lines="3"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ### 声明依赖项
    
    与在*路径操作函数*参数中使用 `Body`、`Query` 的方式相同,声明依赖项需要使用 `Depends` 和一个新的参数:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top