Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 874 for tutorial001 (0.16 sec)

  1. docs/em/docs/advanced/generate-clients.md

    ## ๐Ÿ— ๐Ÿ“• ๐Ÿ•ธ ๐Ÿ‘ฉโ€๐Ÿ’ป
    
    โžก๏ธ โ–ถ๏ธ โฎ๏ธ ๐Ÿ™… FastAPI ๐Ÿˆธ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="9-11  14-15  18  19  23"
    {!> ../../docs_src/generate_clients/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="7-9  12-13  16-17  21"
    {!> ../../docs_src/generate_clients/tutorial001_py39.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/schema-extra-example.md

    ```Python hl_lines="13-23"
    {!> ../../docs_src/schema_extra_example/tutorial001_py310_pv1.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ Pydantic v2
    
    ```Python hl_lines="15-26"
    {!> ../../docs_src/schema_extra_example/tutorial001.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ Pydantic v1
    
    ```Python hl_lines="15-25"
    {!> ../../docs_src/schema_extra_example/tutorial001_pv1.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/settings.md

    ๐ŸŽ ๐ŸŒŒ โฎ๏ธ Pydantic ๐Ÿท, ๐Ÿ‘† ๐Ÿ“ฃ ๐ŸŽ“ ๐Ÿ”ข โฎ๏ธ ๐Ÿ†Ž โœ, & ๐ŸŽฒ ๐Ÿ”ข ๐Ÿ’ฒ.
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐ŸŒ ๐ŸŽ ๐Ÿ”ฌ โš’ & ๐Ÿงฐ ๐Ÿ‘† โš™๏ธ Pydantic ๐Ÿท, ๐Ÿ’– ๐ŸŽ ๐Ÿ“Š ๐Ÿ†Ž & ๐ŸŒ– ๐Ÿ”ฌ โฎ๏ธ `Field()`.
    
    ```Python hl_lines="2  5-8  11"
    {!../../docs_src/settings/tutorial001.py!}
    ```
    
    /// tip
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š ๐Ÿ•ณ โฉ ๐Ÿ“ & ๐Ÿ“‹, ๐Ÿšซ โš™๏ธ ๐Ÿ‘‰ ๐Ÿ–ผ, โš™๏ธ ๐Ÿ 1๏ธโƒฃ ๐Ÿ”›.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/events.md

    ### `startup`-Event
    
    Um eine Funktion hinzuzufรผgen, die vor dem Start der Anwendung ausgefรผhrt werden soll, deklarieren Sie diese mit dem Event `startup`:
    
    ```Python hl_lines="8"
    {!../../docs_src/events/tutorial001.py!}
    ```
    
    In diesem Fall initialisiert die Eventhandler-Funktion `startup` die โ€žDatenbankโ€œ der Items (nur ein `dict`) mit einigen Werten.
    
    Sie kรถnnen mehr als eine Eventhandler-Funktion hinzufรผgen.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/testing.md

    โœ ๐Ÿ”ข โฎ๏ธ ๐Ÿ“› ๐Ÿ‘ˆ โ–ถ๏ธ โฎ๏ธ `test_` (๐Ÿ‘‰ ๐Ÿฉ `pytest` ๐Ÿ›).
    
    โš™๏ธ `TestClient` ๐ŸŽš ๐ŸŽ ๐ŸŒŒ ๐Ÿ‘† โฎ๏ธ `httpx`.
    
    โœ ๐Ÿ™… `assert` ๐Ÿ“„ โฎ๏ธ ๐Ÿฉ ๐Ÿ ๐Ÿงฌ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’ช โœ… (๐Ÿ”„, ๐Ÿฉ `pytest`).
    
    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ”ฌ ๐Ÿ”ข ๐Ÿ˜ `def`, ๐Ÿšซ `async def`.
    
     & ๐Ÿค™ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ˜ ๐Ÿค™, ๐Ÿšซ โš™๏ธ `await`.
    
    ๐Ÿ‘‰ โœ” ๐Ÿ‘† โš™๏ธ `pytest` ๐Ÿ”— ๐Ÿต ๐Ÿคข.
    
    ///
    
    /// note | "๐Ÿ“ก โ„น"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/debugging.md

    # ใƒ‡ใƒใƒƒใ‚ฐ
    
    Visual Studio Codeใ‚„PyCharmใชใฉใ‚’ไฝฟ็”จใ—ใฆใ€ใ‚จใƒ‡ใ‚ฃใ‚ฟใƒผไธŠใงใƒ‡ใƒใƒƒใ‚ฌใƒผใจ้€ฃๆบใงใใพใ™ใ€‚
    
    ## `uvicorn` ใฎๅฎŸ่กŒ
    
    FastAPIใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณไธŠใงใ€`uvicorn` ใ‚’็›ดๆŽฅใ‚คใƒณใƒใƒผใƒˆใ—ใฆๅฎŸ่กŒใ—ใพใ™:
    
    ```Python hl_lines="1  15"
    {!../../docs_src/debugging/tutorial001.py!}
    ```
    
    ### `__name__ == "__main__"` ใซใคใ„ใฆ
    
    `__name__ == "__main__"` ใฎไธปใช็›ฎ็š„ใฏใ€ใƒ•ใ‚กใ‚คใƒซใŒๆฌกใฎใ‚ณใƒžใƒณใƒ‰ใงๅ‘ผใณๅ‡บใ•ใ‚ŒใŸใจใใซๅฎŸ่กŒใ•ใ‚Œใ‚‹ใ‚ณใƒผใƒ‰ใ‚’็”จๆ„ใ™ใ‚‹ใ“ใจใงใ™:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/security/get-current-user.md

    ```
    
    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls mรถglich.
    
    ///
    
    ```Python hl_lines="10"
    {!> ../../docs_src/security/tutorial001.py!}
    ```
    
    ////
    
    Aber das ist immer noch nicht so nรผtzlich.
    
    Lassen wir es uns den aktuellen Benutzer รผberreichen.
    
    ## Ein Benutzermodell erstellen
    
    Erstellen wir zunรคchst ein Pydantic-Benutzermodell.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/security/get-current-user.md

    ```Python hl_lines="10"
    {!../../docs_src/security/tutorial001.py!}
    ```
    
    ๊ทธ๋Ÿฌ๋‚˜ ์•„์ง๋„ ์œ ์šฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
    
    ํ˜„์žฌ ์‚ฌ์šฉ์ž๋ฅผ ์ œ๊ณตํ•˜๋„๋ก ํ•ฉ์‹œ๋‹ค.
    
    ## ์œ ์ € ๋ชจ๋ธ ์ƒ์„ฑํ•˜๊ธฐ
    
    ๋จผ์ € Pydantic ์œ ์ € ๋ชจ๋ธ์„ ๋งŒ๋“ค์–ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.
    
    Pydantic์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ณธ๋ฌธ์„ ์„ ์–ธํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ๋‹ค๋ฅธ ๊ณณ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    //// tab | ํŒŒ์ด์ฌ 3.7 ์ด์ƒ
    
    ```Python hl_lines="5  12-16"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    //// tab | ํŒŒ์ด์ฌ 3.10 ์ด์ƒ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/extra-models.md

    ```Python hl_lines="1 14 15 18 19 20 33"
    {!../../docs_src/extra_models/tutorial003.py!}
    ```
    
    ## ใƒขใƒ‡ใƒซใฎใƒชใ‚นใƒˆ
    
    ๅŒใ˜ใ‚ˆใ†ใซใ€ใ‚ชใƒ–ใ‚ธใ‚งใ‚ฏใƒˆใฎใƒชใ‚นใƒˆใฎใƒฌใ‚นใƒใƒณใ‚นใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ใใฎใŸใ‚ใซใฏใ€ๆจ™ๆบ–ใฎPythonใฎ`typing.List`ใ‚’ไฝฟ็”จใ™ใ‚‹:
    
    ```Python hl_lines="1 20"
    {!../../docs_src/extra_models/tutorial004.py!}
    ```
    
    ## ไปปๆ„ใฎ`dict`ใ‚’ๆŒใคใƒฌใ‚นใƒใƒณใ‚น
    
    ใพใŸใ€Pydanticใƒขใƒ‡ใƒซใ‚’ไฝฟ็”จใ›ใšใซใ€ใ‚ญใƒผใจๅ€คใฎๅž‹ใ ใ‘ใ‚’ๅฎš็พฉใ—ใŸไปปๆ„ใฎ`dict`ใ‚’ไฝฟใฃใฆใƒฌใ‚นใƒใƒณใ‚นใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใ‚‚ใงใใพใ™ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/body-updates.md

    ```Python hl_lines="34"
    {!../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### Pydanticใฎ`update`ใƒ‘ใƒฉใƒกใƒผใ‚ฟ
    
    ใ“ใ“ใงใ€`.copy()`ใ‚’็”จใ„ใฆๆ—ขๅญ˜ใฎใƒขใƒ‡ใƒซใฎใ‚ณใƒ”ใƒผใ‚’ไฝœๆˆใ—ใ€`update`ใƒ‘ใƒฉใƒกใƒผใ‚ฟใซๆ›ดๆ–ฐใ™ใ‚‹ใƒ‡ใƒผใ‚ฟใ‚’ๅซใ‚€`dict`ใ‚’ๆธกใ™ใ“ใจใŒใงใใพใ™ใ€‚
    
    `stored_item_model.copy(update=update_data)`ใฎใ‚ˆใ†ใซ:
    
    ```Python hl_lines="35"
    {!../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### ้ƒจๅˆ†็š„ๆ›ดๆ–ฐใฎใพใจใ‚
    
    ใพใจใ‚ใ‚‹ใจใ€้ƒจๅˆ†็š„ใชๆ›ดๆ–ฐใ‚’้ฉ็”จใ™ใ‚‹ใซใฏใ€ๆฌกใฎใ‚ˆใ†ใซใ—ใพใ™:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top