Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 849 for Pydantics (0.08 sec)

  1. docs/em/docs/tutorial/extra-data-types.md

        * 📨 & 📨 🔜 😥 `str`.
        * 🏗 🔗 🔜 ✔ 👈 ⚫️ `str` ⏮️ `binary` "📁".
    * `Decimal`:
        * 🐩 🐍 `Decimal`.
        * 📨 & 📨, 🍵 🎏 `float`.
    * 👆 💪 ✅ 🌐 ☑ Pydantic 📊 🆎 📥: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic 📊 🆎</a>.
    
    ## 🖼
    
    📥 🖼 *➡ 🛠️* ⏮️ 🔢 ⚙️ 🔛 🆎.
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="1  3  12-16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/encoder.md

    Точно так же эта база данных не может принять Pydantic модель (объект с атрибутами), а только `dict`.
    
    Для этого можно использовать функцию `jsonable_encoder`.
    
    Она принимает объект, например, модель Pydantic, и возвращает его версию, совместимую с JSON:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="4  21"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/extra-data-types.md

    * `Decimal`:
        * Встроенный в Python `Decimal`.
        * В запросах и ответах обрабатывается так же, как и `float`.
    * Вы можете проверить все допустимые типы данных pydantic здесь: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Типы данных Pydantic</a>.
    
    ## Пример
    
    Вот пример *операции пути* с параметрами, который демонстрирует некоторые из вышеперечисленных типов.
    
    //// tab | Python 3.8 и выше
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. tests/test_forms_single_model.py

    from typing import List, Optional
    
    from dirty_equals import IsDict
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class FormModel(BaseModel):
        username: str
        lastname: str
        age: Optional[int] = None
        tags: List[str] = ["foo", "bar"]
        alias_with: str = Field(alias="with", default="nothing")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. docs/es/docs/python-types.md

    ## Modelos de Pydantic
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> es una library de Python para llevar a cabo validación de datos.
    
    Tú declaras la "forma" de los datos mediante clases con atributos.
    
    Cada atributo tiene un tipo.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_header_param_models/test_tutorial002.py

                            "input": {"x_tag": [], "host": "testserver"},
                        }
                    )
                    | IsDict(
                        # TODO: remove when deprecating Pydantic v1
                        {
                            "type": "value_error.missing",
                            "loc": ["header", "save_data"],
                            "msg": "field required",
                        }
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an.py

                                            ],
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
                                                {"$ref": "#/components/schemas/Item"}
                                            ],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. tests/utils.py

    needs_py310 = pytest.mark.skipif(
        sys.version_info < (3, 10), reason="requires python3.10+"
    )
    needs_pydanticv2 = pytest.mark.skipif(not PYDANTIC_V2, reason="requires Pydantic v2")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 422 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_response_model/test_tutorial003_01.py

                    "BaseUser": {
                        "title": "BaseUser",
                        "required": IsOneOf(
                            ["username", "email", "full_name"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username", "email"],
                        ),
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/extra-data-types.md

        * O `Decimal` padrão do Python.
        * Em requisições e respostas será representado como um `float`.
    * Você pode checar todos os tipos de dados válidos do Pydantic aqui: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Tipos de dados do Pydantic</a>.
    
    ## Exemplo
    
    Aqui está um exemplo de *operação de rota* com parâmetros utilizando-se de alguns dos tipos acima.
    
    ```Python hl_lines="1  3  12-16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top