Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 322 for Pydantic (0.14 sec)

  1. docs/zh/docs/advanced/dataclasses.md

    因此,即便上述代码没有显式使用 Pydantic,FastAPI 仍会使用 Pydantic 把标准数据类转换为 Pydantic 数据类(`dataclasses`)。
    
    并且,它仍然支持以下功能:
    
    * 数据验证
    * 数据序列化
    * 数据存档等
    
    数据类的和运作方式与 Pydantic 模型相同。实际上,它的底层使用的也是 Pydantic。
    
    !!! info "说明"
    
        注意,数据类不支持 Pydantic 模型的所有功能。
    
        因此,开发时仍需要使用 Pydantic 模型。
    
        但如果数据类很多,这一技巧能给 FastAPI 开发 Web API 增添不少助力。🤓
    
    ## `response_model` 使用数据类
    
    在 `response_model` 参数中使用 `dataclasses`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:44:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/dataclasses.md

    , ⏮️ 📟 🔛 👈 🚫 ⚙️ Pydantic 🎯, FastAPI ⚙️ Pydantic 🗜 📚 🐩 🎻 Pydantic 👍 🍛 🎻.
    
    & ↗️, ⚫️ 🐕‍🦺 🎏:
    
    * 💽 🔬
    * 💽 🛠️
    * 💽 🧾, ♒️.
    
    👉 👷 🎏 🌌 ⏮️ Pydantic 🏷. & ⚫️ 🤙 🏆 🎏 🌌 🔘, ⚙️ Pydantic.
    
    !!! info
        ✔️ 🤯 👈 🎻 💪 🚫 🌐 Pydantic 🏷 💪.
    
        , 👆 5️⃣📆 💪 ⚙️ Pydantic 🏷.
    
        ✋️ 🚥 👆 ✔️ 📚 🎻 🤥 🤭, 👉 👌 🎱 ⚙️ 👫 🏋️ 🕸 🛠️ ⚙️ FastAPI. 👶
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. docs/uk/docs/tutorial/body.md

        Він покращує підтримку редакторів для моделей Pydantic за допомогою:
    
        * автозаповнення
        * перевірки типу
        * рефакторингу
        * пошуку
        * інспекції
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  4. docs/pl/docs/features.md

    * 100% pokrycie testami.
    * 100% adnotacji typów.
    
    ## Cechy Pydantic
    
    **FastAPI** jest w pełni kompatybilny z (oraz bazuje na) <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tak więc każdy dodatkowy kod Pydantic, który posiadasz, również będzie działał.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  5. docs/ru/docs/features.md

    * 100% аннотирование типов в кодовой базе.
    
    ## Особенности и возможности Pydantic
    
    **FastAPI** основан на <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> и полностью совместим с ним. Так что, любой дополнительный код Pydantic, который у вас есть, будет также работать.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. docs/es/docs/features.md

    * Base de código 100% anotada con tipos.
    
    ## Características de Pydantic
    
    **FastAPI** está basado y es completamente compatible con <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>. Tanto así, que cualquier código de Pydantic que tengas también funcionará.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  7. docs/fa/docs/features.md

    * 100% پوشش با تست.
    * 100% کد براساس type annotate ها.
    
    ## ویژگی های Pydantic
    
    **FastAPI** کاملا (و براساس) با <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> سازگار است. بنابراین هرکد Pydantic اضافی که داشته باشید، نیز کار خواهد کرد.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/settings.md

    ## Pydantic `Settings`
    
    Glücklicherweise bietet Pydantic ein großartiges Werkzeug zur Verarbeitung dieser Einstellungen, die von Umgebungsvariablen stammen, mit <a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings Management</a>.
    
    ### `pydantic-settings` installieren
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  9. docs/ko/docs/features.md

    * **CORS**, GZip, 정적 파일, 스트리밍 응답.
    * **세션과 쿠키** 지원.
    * 100% 테스트 범위.
    * 100% 타입이 명시된 코드 베이스.
    
    ## Pydantic 기능
    
    **FastAPI**는 <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a>을 기반으로 하며 Pydantic과 완벽하게 호환됩니다. 그래서 어느 추가적인 Pydantic 코드를 여러분이 가지고 있든 작동할 것입니다.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    ### Sobre `**user_in.dict()`
    
    #### O `.dict()` do Pydantic
    
    `user_in` é um modelo Pydantic da classe `UserIn`.
    
    Os modelos Pydantic possuem um método `.dict()` que retorna um `dict` com os dados do modelo.
    
    Então, se criarmos um objeto Pydantic `user_in` como:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top