Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 396 for pydantic (0.05 sec)

  1. .github/DISCUSSION_TEMPLATE/questions.yml

            ```
        validations:
          required: true
      - type: input
        id: pydantic-version
        attributes:
          label: Pydantic Version
          description: |
            What Pydantic version are you using?
    
            You can find the Pydantic version with:
    
            ```bash
            python -c "import pydantic; print(pydantic.version.VERSION)"
            ```
        validations:
          required: true
      - type: input
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Aug 03 15:59:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/schema-extra-example.md

    # ๐Ÿ“ฃ ๐Ÿ“จ ๐Ÿ–ผ ๐Ÿ’ฝ
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ–ผ ๐Ÿ’ฝ ๐Ÿ‘† ๐Ÿ“ฑ ๐Ÿ’ช ๐Ÿ“จ.
    
    ๐Ÿ“ฅ ๐Ÿ“š ๐ŸŒŒ โšซ๏ธ.
    
    ## Pydantic `schema_extra`
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ `example` Pydantic ๐Ÿท โš™๏ธ `Config` &amp; `schema_extra`, ๐Ÿ”ฌ <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#customizing-json-schema" class="external-link" target="_blank">Pydantic ๐Ÿฉบ: ๐Ÿ”— ๐Ÿ›ƒ</a>:
    
    {* ../../docs_src/schema_extra_example/tutorial001.py hl[15:23] *}
    
    ๐Ÿ‘ˆ โž• โ„น ๐Ÿ”œ ๐Ÿšฎ-๐Ÿ”ข **๐ŸŽป ๐Ÿ”—** ๐Ÿ‘ˆ ๐Ÿท, &amp; โšซ๏ธ ๐Ÿ”œ โš™๏ธ ๐Ÿ› ๏ธ ๐Ÿฉบ.
    
    /// tip
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. docs/em/docs/deployment/versions.md

    ๐Ÿ‘† ๐Ÿšซ๐Ÿ”œ ๐Ÿšซ ๐Ÿ“Œ โฌ `starlette`.
    
    ๐ŸŽ โฌ **FastAPI** ๐Ÿ”œ โš™๏ธ ๐ŸŽฏ ๐Ÿ†• โฌ ๐Ÿ’ƒ.
    
    , ๐Ÿ‘† ๐Ÿ’ช โžก๏ธ **FastAPI** โš™๏ธ โ˜‘ ๐Ÿ’ƒ โฌ.
    
    ## ๐Ÿ”ƒ Pydantic
    
    Pydantic ๐Ÿ”Œ ๐Ÿ’ฏ **FastAPI** โฎ๏ธ ๐Ÿšฎ ๐Ÿ‘ ๐Ÿ’ฏ, ๐Ÿ†• โฌ Pydantic (๐Ÿ”› `1.0.0`) ๐Ÿ•ง ๐Ÿ”— โฎ๏ธ FastAPI.
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“Œ Pydantic ๐Ÿ™† โฌ ๐Ÿ”› `1.0.0` ๐Ÿ‘ˆ ๐Ÿ‘ท ๐Ÿ‘† &amp; ๐Ÿ”› `2.0.0`.
    
    ๐Ÿ–ผ:
    
    ```txt
    pydantic>=1.2.0,<2.0.0
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/cookie-param-models.md

    ///
    
    ## Pydantic-ะผะพะดะตะปัŒ ะดะปั cookies
    
    ะžะฑัŠัะฒะธั‚ะต ะฟะฐั€ะฐะผะตั‚ั€ั‹ **cookie**, ะบะพั‚ะพั€ั‹ะต ะฒะฐะผ ะฝัƒะถะฝั‹, ะฒ **Pydantic-ะผะพะดะตะปะธ**, ะฐ ะทะฐั‚ะตะผ ะพะฑัŠัะฒะธั‚ะต ะฟะฐั€ะฐะผะตั‚ั€ ะบะฐะบ `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** **ะธะทะฒะปะตั‡ั‘ั‚** ะดะฐะฝะฝั‹ะต ะดะปั **ะบะฐะถะดะพะณะพ ะฟะพะปั** ะธะท **cookies**, ะฟะพะปัƒั‡ะตะฝะฝั‹ั… ะฒ ะทะฐะฟั€ะพัะต, ะธ ะฒั‹ะดะฐัั‚ ะฒะฐะผ ะพะฑัŠัะฒะปะตะฝะฝัƒัŽ Pydantic-ะผะพะดะตะปัŒ.
    
    ## ะŸั€ะพะฒะตั€ะบะฐ ัะณะตะฝะตั€ะธั€ะพะฒะฐะฝะฝะพะน ะดะพะบัƒะผะตะฝั‚ะฐั†ะธะธ
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 14:14:42 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/extra-models.md

    
    /// info | ์ •๋ณด
    
    Pydantic v1์—์„œ๋Š” ํ•ด๋‹น ๋ฉ”์„œ๋“œ๊ฐ€ `.dict()`๋กœ ๋ถˆ๋ ธ์œผ๋ฉฐ, Pydantic v2์—์„œ๋Š” `.model_dump()`๋กœ ์ด๋ฆ„์ด ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. `.dict()`๋Š” ์—ฌ์ „ํžˆ ์ง€์›๋˜์ง€๋งŒ ๋” ์ด์ƒ ๊ถŒ์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
    
    ์—ฌ๊ธฐ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์˜ˆ์ œ๋Š” Pydantic v1๊ณผ์˜ ํ˜ธํ™˜์„ฑ์„ ์œ„ํ•ด `.dict()`๋ฅผ ์‚ฌ์šฉํ•˜์ง€๋งŒ, Pydantic v2๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด `.model_dump()`๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
    
    ///
    
    ### `**user_in.dict()` ์— ๋Œ€ํ•˜์—ฌ
    
    #### Pydantic์˜ `.dict()`
    
    `user_in`์€ Pydantic ๋ชจ๋ธ ํด๋ž˜์Šค์ธ `UserIn`์ž…๋‹ˆ๋‹ค.
    
    Pydantic ๋ชจ๋ธ์€ ๋ชจ๋ธ ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•œ `dict`๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” `.dict()` ๋ฉ”์„œ๋“œ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:38:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/extra-data-types.md

        * ์ƒ์„ฑ๋œ ์Šคํ‚ค๋งˆ๋Š” ์ด๊ฒƒ์ด `binary` "ํ˜•์‹"์˜ `str`์ž„์„ ๋ช…์‹œํ•ฉ๋‹ˆ๋‹ค.
    * `Decimal`:
        * ํ‘œ์ค€ ํŒŒ์ด์ฌ์˜ `Decimal`.
        * ์š”์ฒญ๊ณผ ์‘๋‹ต์—์„œ `float`์™€ ๋™์ผํ•˜๊ฒŒ ๋‹ค๋ค„์ง‘๋‹ˆ๋‹ค.
    * ์—ฌ๊ธฐ์—์„œ ๋ชจ๋“  ์œ ํšจํ•œ pydantic ๋ฐ์ดํ„ฐ ์ž๋ฃŒํ˜•์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค: <a href="https://docs.pydantic.dev/latest/usage/types/types/" class="external-link" target="_blank">Pydantic ๋ฐ์ดํ„ฐ ์ž๋ฃŒํ˜•</a>.
    
    ## ์˜ˆ์‹œ
    
    ์œ„์˜ ๋ช‡๋ช‡ ์ž๋ฃŒํ˜•์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์‚ฌ์šฉํ•˜๋Š” *๊ฒฝ๋กœ ์ž‘๋™* ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค.
    
    {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/extra-data-types.md

        * ๐Ÿ“จ &amp; ๐Ÿ“จ ๐Ÿ”œ ๐Ÿ˜ฅ `str`.
        * ๐Ÿ— ๐Ÿ”— ๐Ÿ”œ โœ” ๐Ÿ‘ˆ โšซ๏ธ `str` โฎ๏ธ `binary` "๐Ÿ“".
    * `Decimal`:
        * ๐Ÿฉ ๐Ÿ `Decimal`.
        * ๐Ÿ“จ &amp; ๐Ÿ“จ, ๐Ÿต ๐ŸŽ `float`.
    * ๐Ÿ‘† ๐Ÿ’ช โœ… ๐ŸŒ โ˜‘ Pydantic ๐Ÿ“Š ๐Ÿ†Ž ๐Ÿ“ฅ: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic ๐Ÿ“Š ๐Ÿ†Ž</a>.
    
    ## ๐Ÿ–ผ
    
    ๐Ÿ“ฅ ๐Ÿ–ผ *โžก ๐Ÿ› ๏ธ* โฎ๏ธ ๐Ÿ”ข โš™๏ธ ๐Ÿ”› ๐Ÿ†Ž.
    
    {* ../../docs_src/extra_data_types/tutorial001.py hl[1,3,12:16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/security/get-current-user.md

    Pero eso aรบn no es tan รบtil. Vamos a hacer que nos dรฉ el usuario actual.
    
    ## Crear un modelo de usuario
    
    Primero, vamos a crear un modelo de usuario con Pydantic.
    
    De la misma manera que usamos Pydantic para declarar cuerpos, podemos usarlo en cualquier otra parte:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *}
    
    ## Crear una dependencia `get_current_user`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/encoder.md

    The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`.
    
    You can use `jsonable_encoder` for that.
    
    It receives an object, like a Pydantic model, and returns a JSON compatible version:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/encoder.md

    Da mesma forma, este banco de dados nรฃo receberia um modelo Pydantic (um objeto com atributos), apenas um `dict`.
    
    Vocรช pode usar a funรงรฃo `jsonable_encoder` para resolver isso.
    
    A funรงรฃo recebe um objeto, como um modelo Pydantic e retorna uma versรฃo compatรญvel com JSON:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top