Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 713 for Pydantic (2.3 sec)

  1. docs/es/docs/tutorial/encoder.md

    De la misma manera, esta base de datos no recibiría un modelo de Pydantic (un objeto con atributos), solo un `dict`.
    
    Puedes usar `jsonable_encoder` para eso.
    
    Recibe un objeto, como un modelo de Pydantic, y devuelve una versión compatible con JSON:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    En este ejemplo, convertiría el modelo de Pydantic a un `dict`, y el `datetime` a un `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/encoder.md

    Genauso würde die Datenbank kein Pydantic-Modell (ein Objekt mit Attributen) akzeptieren, sondern nur ein `dict`.
    
    Sie können für diese Fälle `jsonable_encoder` verwenden.
    
    Es nimmt ein Objekt entgegen, wie etwa ein Pydantic-Modell, und gibt eine JSON-kompatible Version zurück:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial001.py hl[9,11,16,22,24,29:30,33:35,40:41] *}
    
    ### `**user_in.dict()`について
    
    #### Pydanticの`.dict()`
    
    `user_in`は`UserIn`クラスのPydanticモデルです。
    
    Pydanticモデルには、モデルのデータを含む`dict`を返す`.dict()`メソッドがあります。
    
    そこで、以下のようなPydanticオブジェクト`user_in`を作成すると:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    そして呼び出すと:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. docs/ja/docs/features.md

    * テストカバレッジ100%
    * 型アノテーション100%のコードベース
    
    ## Pydanticの特徴
    
    **FastAPI**は<a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic </strong></a>と完全に互換性があります(そしてベースになっています)。したがって、追加のPydanticコードがあれば、それも機能します。
    
    データベースのために<abbr title = "Object-Relational Mapper">ORM</abbr>sや、<abbr title = "Object-Document Mapper">ODM</abbr>sなどの、Pydanticに基づく外部ライブラリを備えています。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/extra-data-types.md

    * `Decimal`:
        * Стандартний Пайтонівський `Decimal`.
        * У запитах і відповідях це буде оброблено так само, як і `float`.
    * Ви можете перевірити всі дійсні типи даних Pydantic тут: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">типи даних Pydantic</a>.
    
    ## Приклад
    
    Ось приклад *path operation* з параметрами, використовуючи деякі з вищезазначених типів.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/versions.md

    So, you can just let **FastAPI** use the correct Starlette version.
    
    ## About Pydantic { #about-pydantic }
    
    Pydantic includes the tests for **FastAPI** with its own tests, so new versions of Pydantic (above `1.0.0`) are always compatible with FastAPI.
    
    You can pin Pydantic to any version above `1.0.0` that works for you.
    
    For example:
    
    ```txt
    pydantic>=2.7.0,<3.0.0
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/security/get-current-user.md

    Но это всё ещё не слишком полезно.
    
    Сделаем так, чтобы она возвращала текущего пользователя.
    
    ## Создать модель пользователя { #create-a-user-model }
    
    Сначала создадим Pydantic-модель пользователя.
    
    Точно так же, как мы используем Pydantic для объявления тел запросов, мы можем использовать его где угодно:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. docs/es/docs/deployment/versions.md

    ## Sobre Pydantic { #about-pydantic }
    
    Pydantic incluye los tests para **FastAPI** con sus propios tests, así que nuevas versiones de Pydantic (por encima de `1.0.0`) siempre son compatibles con FastAPI.
    
    Puedes fijar Pydantic a cualquier versión por encima de `1.0.0` que funcione para ti.
    
    Por ejemplo:
    
    ```txt
    pydantic>=2.7.0,<3.0.0
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. docs/ru/docs/index.md

    Дополнительные опциональные зависимости Pydantic:
    
    * <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> — для управления настройками.
    * <a href="https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/" target="_blank"><code>pydantic-extra-types</code></a> — дополнительные типы для использования с Pydantic.
    
    Дополнительные опциональные зависимости FastAPI:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 32K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/extra-data-types.md

    * `Decimal`:
        * Standard Python `Decimal`.
        * In requests and responses, handled the same as a `float`.
    * You can check all the valid Pydantic data types here: <a href="https://docs.pydantic.dev/latest/usage/types/types/" class="external-link" target="_blank">Pydantic data types</a>.
    
    ## Example { #example }
    
    Here's an example *path operation* with parameters using some of the above types.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top