Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 871 for tutorial001 (0.18 sec)

  1. docs/em/docs/tutorial/schema-extra-example.md

    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="15-23"
    {!> ../../docs_src/schema_extra_example/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="13-21"
    {!> ../../docs_src/schema_extra_example/tutorial001_py310.py!}
    ```
    
    ////
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/cors.md

    ๐Ÿ‘† ๐Ÿ’ช โœ” ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ‘ฉโ€๐Ÿ’ป โœ”:
    
    * ๐ŸŽ“ (โœ” ๐ŸŽš, ๐Ÿช, โ™’๏ธ).
    * ๐ŸŽฏ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘ฉโ€๐Ÿ”ฌ (`POST`, `PUT`) โš–๏ธ ๐ŸŒ ๐Ÿ‘ซ โฎ๏ธ ๐Ÿƒ `"*"`.
    * ๐ŸŽฏ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐ŸŽš โš–๏ธ ๐ŸŒ ๐Ÿ‘ซ โฎ๏ธ ๐Ÿƒ `"*"`.
    
    ```Python hl_lines="2  6-11  13-19"
    {!../../docs_src/cors/tutorial001.py!}
    ```
    
    ๐Ÿ”ข ๐Ÿ”ข โš™๏ธ `CORSMiddleware` ๐Ÿ› ๏ธ ๐Ÿšซ ๐Ÿ”ข, ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ’ช ๐ŸŽฏ ๐Ÿ› ๏ธ ๐ŸŽฏ ๐Ÿ‡จ๐Ÿ‡ณ, ๐Ÿ‘ฉโ€๐Ÿ”ฌ, โš–๏ธ ๐ŸŽš, โœ” ๐Ÿ–ฅ โœ” โš™๏ธ ๐Ÿ‘ซ โœ–๏ธ-๐Ÿ†” ๐Ÿ”‘.
    
    ๐Ÿ“„ โŒ ๐Ÿ•โ€๐Ÿฆบ:
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/dataclasses.md

    ```Python hl_lines="1  7-12  19-20"
    {!../../docs_src/dataclasses/tutorial001.py!}
    ```
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/dataclasses.md

    But FastAPI also supports using <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> the same way:
    
    ```Python hl_lines="1  7-12  19-20"
    {!../../docs_src/dataclasses/tutorial001.py!}
    ```
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003.py hl[1] *}
    
    Because the editor knows the types of the variables, you don't only get completion, you also get error checks:
    
    <img src="/img/python-types/image04.png">
    
    Now you know that you have to fix it, convert `age` to a string with `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004.py hl[2] *}
    
    ## Declaring types
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/body-updates.md

    ็„ถๅŽๅ†็”จๅฎƒ็”Ÿๆˆไธ€ไธชๅชๅซๅทฒ่ฎพ็ฝฎ๏ผˆๅœจ่ฏทๆฑ‚ไธญๆ‰€ๅ‘้€๏ผ‰ๆ•ฐๆฎ๏ผŒไธ”็œ็•ฅไบ†้ป˜่ฎคๅ€ผ็š„ `dict`๏ผš
    
    ```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!}
    ```
    
    ### ๆ›ดๆ–ฐ้ƒจๅˆ†ๆ•ฐๆฎๅฐ็ป“
    
    ็ฎ€่€Œ่จ€ไน‹๏ผŒๆ›ดๆ–ฐ้ƒจๅˆ†ๆ•ฐๆฎๅบ”๏ผš
    
    * ไฝฟ็”จ `PATCH` ่€Œไธๆ˜ฏ `PUT` ๏ผˆๅฏ้€‰๏ผŒไนŸๅฏไปฅ็”จ `PUT`๏ผ‰๏ผ›
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_forms_and_files.tutorial001 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/templates.md

    ```Python hl_lines="4  11  15-18"
    {!../../docs_src/templates/tutorial001.py!}
    ```
    
    /// note
    
    Antes do FastAPI 0.108.0, Starlette 0.29.0, `name` era o primeiro parรขmetro.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/openapi-webhooks.md

    ```Python hl_lines="9-13  36-53"
    {!../../docs_src/openapi_webhooks/tutorial001.py!}
    ```
    
    Die von Ihnen definierten Webhooks landen im **OpenAPI**-Schema und der automatischen **Dokumentations-Oberflรคche**.
    
    /// info
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/templates.md

    ```Python hl_lines="4  11  15-18"
    {!../../docs_src/templates/tutorial001.py!}
    ```
    
    /// note | "Hinweis"
    
    Vor FastAPI 0.108.0 und Starlette 0.29.0 war `name` der erste Parameter.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top