Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for BaseModel (0.1 sec)

  1. docs/em/docs/features.md

    ๐Ÿ‘† โœ ๐Ÿฉ ๐Ÿ โฎ๏ธ ๐Ÿ†Ž:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    ๐Ÿ‘ˆ ๐Ÿ’ช โคด๏ธ โš™๏ธ ๐Ÿ’–:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. docs/ko/docs/features.md

    ์—ฌ๋Ÿฌ๋ถ„์€ ํƒ€์ž…์„ ์ด์šฉํ•œ ํ‘œ์ค€ ํŒŒ์ด์ฌ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # ๋ณ€์ˆ˜๋ฅผ str๋กœ ์„ ์–ธ
    # ๊ทธ ํ›„ ํ•จ์ˆ˜ ์•ˆ์—์„œ ํŽธ์ง‘๊ธฐ ์ง€์›์„ ๋ฐ›์œผ์„ธ์š”
    def main(user_id: str):
        return user_id
    
    
    # Pydantic ๋ชจ๋ธ
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    ์œ„์˜ ์ฝ”๋“œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‚ฌ์šฉ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. docs/de/docs/index.md

    Deklarieren Sie den Body mithilfe von Standard-Python-Typen, dank Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  4. docs/it/docs/index.md

    Dichiara il _body_ usando le annotazioni di tipo standard di Python, grazie a Pydantic.
    
    ```Python hl_lines="2  7-10  23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    from typing import Optional
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool = Optional[None]
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  5. docs/nl/docs/features.md

    Je schrijft gewoon standaard Python met types:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declareer een variabele als een str
    # en krijg editorondersteuning in de functie
    def main(user_id: str):
        return user_id
    
    
    # Een Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Vervolgens kan je het op deze manier gebruiken:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Sep 03 13:50:38 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. docs/ja/docs/features.md

    ๅž‹ใ‚’ไฝฟ็”จใ—ใŸๆจ™ๆบ–็š„ใชPythonใ‚’่จ˜่ฟฐใ—ใพใ™:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    ใ“ใ‚Œใฏไปฅไธ‹ใฎใ‚ˆใ†ใซ็”จใ„ใ‚‰ใ‚Œใพใ™:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. docs/ru/docs/index.md

    ะžะฑัŠัะฒะธั‚ะต ั‚ะตะปะพ, ะธัะฟะพะปัŒะทัƒั ัั‚ะฐะฝะดะฐั€ั‚ะฝัƒัŽ ั‚ะธะฟะธะทะฐั†ะธัŽ Python, ัะฟะฐัะธะฑะพ Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  8. docs/id/docs/index.md

    Deklarasikan struktur menggunakan tipe standar Python, berkat Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. docs/az/docs/index.md

    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  10. docs/ja/docs/index.md

    `PUT`ใƒชใ‚ฏใ‚จใ‚นใƒˆใ‹ใ‚‰ใƒœใƒ‡ใ‚ฃใ‚’ๅ—ใ‘ๅ–ใ‚‹ใŸใ‚ใซ`main.py`ใ‚’ไฟฎๆญฃใ—ใพใ—ใ‚‡ใ†ใ€‚
    
    Pydantic ใซใ‚ˆใฃใฆใ€Python ใฎๆจ™ๆบ–็š„ใชๅž‹ใ‚’ไฝฟใฃใฆใƒœใƒ‡ใ‚ฃใ‚’ๅฎฃ่จ€ใ—ใพใ™ใ€‚
    
    ```Python hl_lines="2  7 8 9 10  23 24 25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.3K bytes
    - Viewed (0)
Back to top