- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 395 for Pydantics (0.07 sec)
-
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 Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.6K bytes - Viewed (0) -
docs/pt/docs/advanced/additional-responses.md
Cada um desses `dict` de retorno pode ter uma chave `model`, contendo um modelo do Pydantic, assim como o `response_model`. O **FastAPI** pegará este modelo, gerará o esquema JSON dele e incluirá no local correto do OpenAPI. Por exemplo, para declarar um outro retorno com o status code `404` e um modelo do Pydantic chamado `Message`, você pode escrever: {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *}Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/de/docs/deployment/versions.md
## Über Pydantic Pydantic integriert die Tests für **FastAPI** in seine eigenen Tests, sodass neue Versionen von Pydantic (über `1.0.0`) immer mit FastAPI kompatibel sind. Sie können Pydantic an jede für Sie geeignete Version über `1.0.0` und unter `2.0.0` anpinnen. Zum Beispiel: ```txt pydantic>=1.2.0,<2.0.0
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-nested-models.md
## 特殊な型とバリデーション `str`や`int`、`float`のような通常の単数型の他にも、`str`を継承したより複雑な単数型を使うこともできます。 すべてのオプションをみるには、<a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydanticのエキゾチック な型</a>のドキュメントを確認してください。次の章でいくつかの例をみることができます。 例えば、`Image`モデルのように`url`フィールドがある場合、`str`の代わりにPydanticの`HttpUrl`を指定することができます: {* ../../docs_src/body_nested_models/tutorial005.py hl[4,10] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/pt/docs/python-types.md
/// info | Informação Para saber mais sobre o <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, verifique a sua documentação</a>. /// O **FastAPI** é todo baseado em Pydantic. Você verá muito mais disso na prática no [Tutorial - Guia do usuário](tutorial/index.md){.internal-link target=_blank}. /// tip | Dica
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 10:32:53 UTC 2024 - 17.8K bytes - Viewed (0) -
docs/es/docs/advanced/settings.md
## Pydantic `Settings` Afortunadamente, Pydantic proporciona una gran utilidad para manejar estas configuraciones provenientes de variables de entorno con <a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings management</a>. ### Instalar `pydantic-settings`
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 12.7K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
每个响应字典都可以有一个关键模型,其中包含一个 `Pydantic` 模型,就像 `response_model` 一样。 **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。 例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写: {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *} /// note 请记住,您必须直接返回 `JSONResponse` 。 /// /// info `model` 密钥不是OpenAPI的一部分。 **FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。 - 正确的位置是:Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:29:26 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/em/docs/advanced/response-directly.md
/// & 🕐❔ 👆 📨 `Response`, **FastAPI** 🔜 🚶♀️ ⚫️ 🔗. ⚫️ 🏆 🚫 🙆 💽 🛠️ ⏮️ Pydantic 🏷, ⚫️ 🏆 🚫 🗜 🎚 🙆 🆎, ♒️. 👉 🤝 👆 📚 💪. 👆 💪 📨 🙆 📊 🆎, 🔐 🙆 💽 📄 ⚖️ 🔬, ♒️. ## ⚙️ `jsonable_encoder` `Response` ↩️ **FastAPI** 🚫 🙆 🔀 `Response` 👆 📨, 👆 ✔️ ⚒ 💭 ⚫️ 🎚 🔜 ⚫️. 🖼, 👆 🚫🔜 🚮 Pydantic 🏷 `JSONResponse` 🍵 🥇 🏭 ⚫️ `dict` ⏮️ 🌐 📊 🆎 (💖 `datetime`, `UUID`, ♒️) 🗜 🎻-🔗 🆎.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/en/docs/python-types.md
Notice that this means "`one_person` is an **instance** of the class `Person`". It doesn't mean "`one_person` is the **class** called `Person`". ## Pydantic models { #pydantic-models } <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation. You declare the "shape" of the data as classes with attributes. And each attribute has a type.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 17.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/sql-databases.md
A classe `Hero` é muito semelhante a um modelo Pydantic (na verdade, por baixo dos panos, ela *é um modelo Pydantic*). Existem algumas diferenças: * `table=True` informa ao SQLModel que este é um *modelo de tabela*, ele deve representar uma **tabela** no banco de dados SQL, não é apenas um *modelo de dados* (como seria qualquer outra classe Pydantic comum).
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Oct 27 15:25:29 UTC 2024 - 15.8K bytes - Viewed (0)