Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 513 for taip (0.04 sec)

  1. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    # ๐Ÿ”— โฎ๏ธ ๐ŸŒพ
    
    FastAPI ๐Ÿ•โ€๐Ÿฆบ ๐Ÿ”— ๐Ÿ‘ˆ <abbr title='sometimes also called "exit", "cleanup", "teardown", "close", "context managers", ...'>โž• ๐Ÿ” โฎ๏ธ ๐Ÿ</abbr>.
    
    ๐Ÿ‘‰, โš™๏ธ `yield` โ†ฉ๏ธ `return`, &amp; โœ โž• ๐Ÿ” โฎ๏ธ.
    
    /// tip
    
    โš’ ๐Ÿ’ญ โš™๏ธ `yield` 1๏ธโƒฃ ๐Ÿ‘ ๐Ÿ•ฐ.
    
    ///
    
    /// note | "๐Ÿ“ก โ„น"
    
    ๐Ÿ™† ๐Ÿ”ข ๐Ÿ‘ˆ โ˜‘ โš™๏ธ โฎ๏ธ:
    
    * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a> โš–๏ธ
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/openapi-callbacks.md

    Dieser Teil ist ziemlich normal, der grรถรŸte Teil des Codes ist Ihnen wahrscheinlich bereits bekannt:
    
    ```Python hl_lines="9-13  36-53"
    {!../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    /// tip | "Tipp"
    
    Der Query-Parameter `callback_url` verwendet einen Pydantic-<a href="https://docs.pydantic.dev/latest/api/networks/" class="external-link" target="_blank">Url</a>-Typ.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/request-forms.md

    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/request_forms/tutorial001_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="1"
    {!> ../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ////
    
    ## Define `Form` parameters
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/bigger-applications.md

    โ”‚ย ย  โ”œโ”€โ”€ main.py
    โ”‚ย ย  โ”œโ”€โ”€ dependencies.py
    โ”‚ย ย  โ””โ”€โ”€ routers
    โ”‚ย ย  โ”‚   โ”œโ”€โ”€ __init__.py
    โ”‚ย ย  โ”‚   โ”œโ”€โ”€ items.py
    โ”‚ย ย  โ”‚   โ””โ”€โ”€ users.py
    โ”‚ย ย  โ””โ”€โ”€ internal
    โ”‚ย ย      โ”œโ”€โ”€ __init__.py
    โ”‚ย ย      โ””โ”€โ”€ admin.py
    ```
    
    /// tip
    
    ๐Ÿ“ค ๐Ÿ“š `__init__.py` ๐Ÿ“: 1๏ธโƒฃ ๐Ÿ”  ๐Ÿ“ โš–๏ธ ๐Ÿ“.
    
    ๐Ÿ‘‰ โšซ๏ธโ” โœ” ๐Ÿญ ๐Ÿ“Ÿ โšช๏ธโžก๏ธ 1๏ธโƒฃ ๐Ÿ“ ๐Ÿ”˜ โž•1๏ธโƒฃ.
    
    ๐Ÿ–ผ, `app/main.py` ๐Ÿ‘† ๐Ÿ’ช โœ”๏ธ โธ ๐Ÿ’–:
    
    ```
    from app.routers import items
    ```
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/async-tests.md

    ## Em Detalhes
    
    O marcador `@pytest.mark.anyio` informa ao pytest que esta funรงรฃo de teste deve ser invocada de maneira assรญncrona:
    
    ```Python hl_lines="7"
    {!../../docs_src/async_tests/test_main.py!}
    ```
    
    /// tip | "Dica"
    
    Note que a funรงรฃo de teste รฉ `async def` agora, no lugar de apenas `def` como quando estรกvamos utilizando o `TestClient` anteriormente.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/testing.md

    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "ๆ็คบ"
    
    ๆณจๆ„ๆต‹่ฏ•ๅ‡ฝๆ•ฐๆ˜ฏๆ™ฎ้€š็š„ `def`๏ผŒไธๆ˜ฏ `async def`ใ€‚
    
    ่ฟ˜ๆœ‰client็š„่ฐƒ็”จไนŸๆ˜ฏๆ™ฎ้€š็š„่ฐƒ็”จ๏ผŒไธๆ˜ฏ็”จ `await`ใ€‚
    
    ่ฟ™่ฎฉไฝ ๅฏไปฅ็›ดๆŽฅไฝฟ็”จ `pytest` ่€Œไธไผš้‡ๅˆฐ้บป็ƒฆใ€‚
    
    ///
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ไฝ ไนŸๅฏไปฅ็”จ `from starlette.testclient import TestClient`ใ€‚
    
    **FastAPI** ๆไพ›ไบ†ๅ’Œ `starlette.testclient` ไธ€ๆ ท็š„ `fastapi.testclient`๏ผŒๅชๆ˜ฏไธบไบ†ๆ–นไพฟๅผ€ๅ‘่€…ใ€‚ไฝ†ๅฎƒ็›ดๆŽฅๆฅ่‡ชStarletteใ€‚
    
    ///
    
    /// tip | "ๆ็คบ"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    โฎ๏ธ ๐Ÿ‘ˆ, ๐Ÿ‘ฅ ๐Ÿ’ช ๐Ÿค™ `crud.get_user` ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ”˜ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* &amp; โš™๏ธ ๐Ÿ‘ˆ ๐ŸŽ‰.
    
    /// tip
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ’ฒ ๐Ÿ‘† ๐Ÿ“จ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿท, โš–๏ธ ๐Ÿ“‡ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿท.
    
    โœ‹๏ธ ๐ŸŒ *โžก ๐Ÿ› ๏ธ* โœ”๏ธ `response_model` โฎ๏ธ Pydantic *๐Ÿท* / ๐Ÿ”— โš™๏ธ `orm_mode`, ๐Ÿ’ฝ ๐Ÿ“ฃ ๐Ÿ‘† Pydantic ๐Ÿท ๐Ÿ”œ โš— โšช๏ธโžก๏ธ ๐Ÿ‘ซ &amp; ๐Ÿ“จ ๐Ÿ‘ฉโ€๐Ÿ’ป, โฎ๏ธ ๐ŸŒ ๐Ÿ˜ โ›ฝ &amp; ๐Ÿ”ฌ.
    
    ///
    
    /// tip
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ“ค `response_models` ๐Ÿ‘ˆ โœ”๏ธ ๐Ÿฉ ๐Ÿ ๐Ÿ†Ž ๐Ÿ’– `List[schemas.Item]`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/schema-extra-example.md

    ```
    
    ////
    
    //// tab | Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ
    
    /// tip | "ํŒ"
    
    ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
    
    ///
    
    ```Python hl_lines="18-25"
    {!> ../../docs_src/schema_extra_example/tutorial003_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ
    
    /// tip | "ํŒ"
    
    ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
    
    ///
    
    ```Python hl_lines="20-27"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/async-tests.md

    ---> 100%
    ```
    
    </div>
    
    ## Details
    
    Der Marker `@pytest.mark.anyio` teilt pytest mit, dass diese Testfunktion asynchron aufgerufen werden soll:
    
    {* ../../docs_src/async_tests/test_main.py hl[7] *}
    
    /// tip | "Tipp"
    
    Beachten Sie, dass die Testfunktion jetzt `async def` ist und nicht nur `def` wie zuvor, wenn Sie den `TestClient` verwenden.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:34:47 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/async-tests.md

    ---> 100%
    ```
    
    </div>
    
    ## In Detail
    
    The marker `@pytest.mark.anyio` tells pytest that this test function should be called asynchronously:
    
    {* ../../docs_src/async_tests/test_main.py hl[7] *}
    
    /// tip
    
    Note that the test function is now `async def` instead of just `def` as before when using the `TestClient`.
    
    ///
    
    Then we can create an `AsyncClient` with the app, and send async requests to it, using `await`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:43:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top