- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 555 for Pythons (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
/// warning | Advertencia Además, el equipo de Pydantic dejó de dar soporte a Pydantic v1 para las versiones más recientes de Python, comenzando con Python 3.14. Si quieres usar las funcionalidades más recientes de Python, tendrás que asegurarte de usar Pydantic v2. ///
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:16:35 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/encoder.md
{* ../../docs_src/encoder/tutorial001.py hl[5,22] *} この例では、Pydanticモデルを`dict`に、`datetime`を`str`に変換します。 呼び出した結果は、Pythonの標準の<a href="https://docs.python.org/3/library/json.html#json.dumps" class="external-link" target="_blank">`json.dumps()`</a>でエンコードできるものです。 これはJSON形式のデータを含む大きな`str`を(文字列として)返しません。JSONと互換性のある値とサブの値を持つPython標準のデータ構造(例:`dict`)を返します。 /// note | 備考 `jsonable_encoder`は実際には **FastAPI** が内部的にデータを変換するために使用します。しかしこれは他の多くのシナリオで有用です。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Jun 22 14:36:05 GMT 2025 - 1.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。 所以: ```Python q: Union[str, None] = Query(default=None) ``` ...使得参数可选,等同于: ```Python q: str = None ``` 但是 `Query` 显式地将其声明为查询参数。 然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数: ```Python q: Union[str, None] = Query(default=None, max_length=50) ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 15 16:23:59 GMT 2025 - 7.7K bytes - Click Count (0) -
docs/pt/docs/advanced/settings.md
`@lru_cache` faz parte de `functools`, que faz parte da biblioteca padrão do Python; você pode ler mais sobre isso na <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" class="external-link" target="_blank">documentação do Python para `@lru_cache`</a>. ## Recapitulando { #recap }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13K bytes - Click Count (0) -
docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
/// warning | Atenção Além disso, a equipe do Pydantic interrompeu o suporte ao Pydantic v1 para as versões mais recentes do Python, a partir do **Python 3.14**. Se quiser usar as funcionalidades mais recentes do Python, você precisará garantir que usa o Pydantic v2. ///
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 5.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-nested-models.md
使用 **FastAPI**,你可以定义、校验、记录文档并使用任意深度嵌套的模型(归功于Pydantic)。 ## List 字段 你可以将一个属性定义为拥有子元素的类型。例如 Python `list`: {* ../../docs_src/body_nested_models/tutorial001_py310.py hl[12] *} 这将使 `tags` 成为一个由元素组成的列表。不过它没有声明每个元素的类型。 ## 具有子类型的 List 字段 但是 Python 有一种特定的方法来声明具有子类型的列表: ### 从 typing 导入 `List` 首先,从 Python 的标准库 `typing` 模块中导入 `List`: {* ../../docs_src/body_nested_models/tutorial002.py hl[1] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 6.7K bytes - Click Count (0) -
docs/en/docs/tutorial/body-multiple-params.md
As, by default, singular values are interpreted as query parameters, you don't have to explicitly add a `Query`, you can just do: ```Python q: Union[str, None] = None ``` Or in Python 3.10 and above: ```Python q: str | None = None ``` For example: {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *} /// info
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 12:58:04 GMT 2025 - 4.9K bytes - Click Count (0) -
docs/de/docs/tutorial/body-multiple-params.md
Da einfache Werte standardmäßig als Query-Parameter interpretiert werden, müssen Sie `Query` nicht explizit hinzufügen, Sie können einfach schreiben: ```Python q: Union[str, None] = None ``` Oder in Python 3.10 und darüber: ```Python q: str | None = None ``` Zum Beispiel: {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *} /// info | Info
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 5.5K bytes - Click Count (0) -
docs/es/docs/tutorial/request-forms-and-files.md
Para recibir archivos subidos y/o form data, primero instala <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Asegúrate de crear un [entorno virtual](../virtual-environments.md){.internal-link target=_blank}, actívalo y luego instálalo, por ejemplo: ```console $ pip install python-multipart ``` /// ## Importa `File` y `Form` { #import-file-and-form }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 1.6K bytes - Click Count (0) -
docs/pt/docs/tutorial/request-forms-and-files.md
Para receber arquivos carregados e/ou dados de formulário, primeiro instale <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Certifique-se de criar um [ambiente virtual](../virtual-environments.md){.internal-link target=_blank}, ativá-lo e então instalar, por exemplo: ```console $ pip install python-multipart ``` /// ## Importe `File` e `Form` { #import-file-and-form }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 1.6K bytes - Click Count (0)