Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for tip (0.15 sec)

  1. docs/tr/docs/tutorial/path-params.md

    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Tip İçeren Yol Parametreleri
    
    Standart Python tip belirteçlerini kullanarak yol parametresinin tipini fonksiyonun içerisinde tanımlayabilirsiniz.
    
    {* ../../docs_src/path_params/tutorial002.py hl[7] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

    /// tip
    
    The `model_config` attribute is used just for Pydantic configuration. You can read more at <a href="https://docs.pydantic.dev/latest/concepts/config/" class="external-link" target="_blank">Pydantic: Concepts: Configuration</a>.
    
    ///
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/settings/app03_an/config_pv1.py hl[9:10] *}
    
    /// tip
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    //// tab | Python 3.8+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python
    commons: CommonQueryParams = Depends(CommonQueryParams)
    ```
    
    ////
    
    The last `CommonQueryParams`, in:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. docs/en/docs/virtual-environments.md

    If you are using **Git** (you should), add a `.gitignore` file to exclude everything in your `.venv` from Git.
    
    /// tip
    
    If you used <a href="https://github.com/astral-sh/uv" class="external-link" target="_blank">`uv`</a> to create the virtual environment, it already did this for you, you can skip this step. 😎
    
    ///
    
    /// tip
    
    Do this **once**, right after you create the virtual environment.
    
    ///
    
    <div class="termy">
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/bigger-applications.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="1  4-6" title="app/dependencies.py"
    {!> ../../docs_src/bigger_applications/app/dependencies.py!}
    ```
    
    ////
    
    /// tip
    
    We are using an invented header to simplify this example.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/async-tests.md

    ```
    
    </div>
    
    ## In Detail { #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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    To do this, use `yield` instead of `return`, and write the extra steps (code) after.
    
    /// tip
    
    Make sure to use `yield` one single time per dependency.
    
    ///
    
    /// note | Technical Details
    
    Any function that is valid to use with:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/simple-oauth2.md

    /// tip
    
    In the next chapter, you will see a real secure implementation, with password hashing and <abbr title="JSON Web Tokens">JWT</abbr> tokens.
    
    But for now, let's focus on the specific details we need.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Order the parameters as you need { #order-the-parameters-as-you-need }
    
    /// tip
    
    This is probably not as important or necessary if you use `Annotated`.
    
    ///
    
    Let's say that you want to declare the query parameter `q` as a required `str`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/graphql.md

    As **FastAPI** is based on the **ASGI** standard, it's very easy to integrate any **GraphQL** library also compatible with ASGI.
    
    You can combine normal FastAPI *path operations* with GraphQL on the same application.
    
    /// tip
    
    **GraphQL** solves some very specific use cases.
    
    It has **advantages** and **disadvantages** when compared to common **web APIs**.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top