Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 501 for tstr (0.01 sec)

  1. docs/ja/docs/tutorial/body.md

    関数パラメータは以下の様に認識されます:
    
    * パラメータが**パス**で宣言されている場合は、優先的にパスパラメータとして扱われます。
    * パラメータが**単数型** (`int`、`float`、`str`、`bool` など)の場合は**クエリ**パラメータとして解釈されます。
    * パラメータが **Pydantic モデル**型で宣言された場合、リクエスト**ボディ**として解釈されます。
    
    /// note | 備考
    
    FastAPIは、`= None`があるおかげで、`q`がオプショナルだとわかります。
    
    `Optional[str]` の`Optional` はFastAPIでは使用されていません(FastAPIは`str`の部分のみ使用します)。しかし、`Optional[str]` はエディタがコードのエラーを見つけるのを助けてくれます。
    
    ///
    
    ## Pydanticを使わない方法
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Jul 26 10:48:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/response-model.md

    ## 📨 🏷 🔢 🔢
    
    👆 📨 🏷 💪 ✔️ 🔢 💲, 💖:
    
    {* ../../docs_src/response_model/tutorial004.py hl[11,13:14] *}
    
    * `description: Union[str, None] = None` (⚖️ `str | None = None` 🐍 3️⃣.1️⃣0️⃣) ✔️ 🔢 `None`.
    * `tax: float = 10.5` ✔️ 🔢 `10.5`.
    * `tags: List[str] = []` 🔢 🛁 📇: `[]`.
    
    ✋️ 👆 💪 💚 🚫 👫 ⚪️➡️ 🏁 🚥 👫 🚫 🤙 🏪.
    
    🖼, 🚥 👆 ✔️ 🏷 ⏮️ 📚 📦 🔢 ☁ 💽, ✋️ 👆 🚫 💚 📨 📶 📏 🎻 📨 🌕 🔢 💲.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None` (o `str | None = None` en Python 3.10) tiene un valor por defecto de `None`.
    * `tax: float = 10.5` tiene un valor por defecto de `10.5`.
    * `tags: List[str] = []` tiene un valor por defecto de una lista vacía: `[]`.
    
    pero podrías querer omitirlos del resultado si no fueron en realidad almacenados.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/security/oauth2-scopes.md

    Para eso, actualizamos el modelo de Pydantic `TokenData` con una nueva propiedad `scopes`.
    
    Al validar los datos con Pydantic podemos asegurarnos de que tenemos, por ejemplo, exactamente una `list` de `str` con los scopes y un `str` con el `username`.
    
    En lugar de, por ejemplo, un `dict`, o algo más, ya que podría romper la aplicación en algún punto posterior, haciéndolo un riesgo de seguridad.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/custom-response.md

    The main `Response` class, all the other responses inherit from it.
    
    You can return it directly.
    
    It accepts the following parameters:
    
    * `content` - A `str` or `bytes`.
    * `status_code` - An `int` HTTP status code.
    * `headers` - A `dict` of strings.
    * `media_type` - A `str` giving the media type. E.g. `"text/html"`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/settings.md

    , 🔢 🔛 ⚫️ 🔜 🛠️ 🕐 🔠 🌀 ❌. & ⤴️ 💲 📨 🔠 👈 🌀 ❌ 🔜 ⚙️ 🔄 & 🔄 🕐❔ 🔢 🤙 ⏮️ ⚫️❔ 🎏 🌀 ❌.
    
    🖼, 🚥 👆 ✔️ 🔢:
    
    ```Python
    @lru_cache
    def say_hi(name: str, salutation: str = "Ms."):
        return f"Hello {salutation} {name}"
    ```
    
    👆 📋 💪 🛠️ 💖 👉:
    
    ```mermaid
    sequenceDiagram
    
    participant code as Code
    participant function as say_hi()
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/security/first-steps.md

    Si no ve un header `Authorization`, o el valor no tiene un token `Bearer `, responderá directamente con un error de código de estado 401 (`UNAUTHORIZED`).
    
    Ni siquiera tienes que verificar si el token existe para devolver un error. Puedes estar seguro de que si tu función se ejecuta, tendrá un `str` en ese token.
    
    Puedes probarlo ya en los docs interactivos:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/path-params-numeric-validations.md

    /// tip
    
    Ce n'est probablement pas aussi important ou nécessaire si vous utilisez `Annotated`.
    
    ///
    
    Disons que vous voulez déclarer le paramètre de requête `q` comme un `str` requis.
    
    Et vous n'avez pas besoin de déclarer autre chose pour ce paramètre, donc vous n'avez pas vraiment besoin d'utiliser `Query`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    Ou como em Python 3.10 e versões superiores:
    
    ```Python
    q: str | None = None
    ```
    
    Por exemplo:
    
    {* ../../docs_src/body_multiple_params/tutorial004_py310.py hl[26] *}
    
    /// info | Informação
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/body-updates.md

    You can use the `jsonable_encoder` to convert the input data to data that can be stored as JSON (e.g. with a NoSQL database). For example, converting `datetime` to `str`.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT` is used to receive data that should replace the existing data.
    
    ### Warning about replacing { #warning-about-replacing }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top