Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for re (0.14 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```Python hl_lines="8  13"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### Return values
    
    And they can return values or not, the values won't be used.
    
    So, you can re-use a normal dependency (that returns a value) you already use somewhere else, and even though the value won't be used, the dependency will be executed:
    
    === "Python 3.9+"
    
        ```Python hl_lines="11  16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app_py39.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 822 bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/handling-errors.md

    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    ### Re-use **FastAPI**'s exception handlers
    
    If you want to use the exception along with the same default exception handlers from  **FastAPI**, You can import and re-use the default exception handlers from `fastapi.exception_handlers`:
    
    ```Python hl_lines="2-5  15  21"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    And it will save the returned value in a <abbr title="A utility/system to store computed/generated values, to re-use them instead of computing them again.">"cache"</abbr> and pass it to all the "dependants" that need it in that specific request, instead of calling the dependency multiple times for the same request.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/custom-docs-ui-assets.md

    ```Python hl_lines="8"
    {!../../../docs_src/custom_docs_ui/tutorial001.py!}
    ```
    
    ### Include the custom docs
    
    Now you can create the *path operations* for the custom docs.
    
    You can re-use FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ### Always `raise` in Dependencies with `yield` and `except`
    
    If you catch an exception in a dependency with `yield`, unless you are raising another `HTTPException` or similar, you should re-raise the original exception.
    
    You can re-raise the same exception using `raise`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial008d_an_py39.py!}
        ```
    
    === "Python 3.8+"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/dependencies/sub-dependencies.md

    ```
    
    ## βš™οΈ 🎏 πŸ”— πŸ’— πŸ•°
    
    πŸš₯ 1️⃣ πŸ‘† πŸ”— πŸ“£ πŸ’— πŸ•° 🎏 *➑ πŸ› οΈ*, πŸ–Ό, πŸ’— πŸ”— βœ”οΈ ⚠ 🎧-πŸ”—, **FastAPI** πŸ”œ πŸ’­ πŸ€™ πŸ‘ˆ 🎧-πŸ”— πŸ•΄ πŸ• πŸ“ πŸ“¨.
    
    &amp; ⚫️ πŸ”œ πŸ–Š πŸ“¨ πŸ’² <abbr title="A utility/system to store computed/generated values, to re-use them instead of computing them again.">"πŸ’Ύ"</abbr> &amp; πŸšΆβ€β™€οΈ ⚫️ 🌐 "βš“οΈ" πŸ‘ˆ πŸ’ͺ ⚫️ πŸ‘ˆ 🎯 πŸ“¨, ↩️ πŸ€™ πŸ”— πŸ’— πŸ•° 🎏 πŸ“¨.
    
    🏧 😐 πŸŒβ” πŸ‘† πŸ’­ πŸ‘† πŸ’ͺ πŸ”— πŸ€™ πŸ”  πŸ” (🎲 πŸ’— πŸ•°) 🎏 πŸ“¨ ↩️ βš™οΈ "πŸ’Ύ" πŸ’², πŸ‘† πŸ’ͺ βš’ πŸ”’ `use_cache=False` πŸ•β” βš™οΈ `Depends`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/templates.md

    Install `jinja2`:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    
    ---> 100%
    ```
    
    </div>
    
    ## Using `Jinja2Templates`
    
    * Import `Jinja2Templates`.
    * Create a `templates` object that you can re-use later.
    * Declare a `Request` parameter in the *path operation* that will return a template.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params-numeric-validations.md

    Python will complain if you put a value with a "default" before a value that doesn't have a "default".
    
    But you can re-order them, and have the value without a default (the query parameter `q`) first.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. .github/workflows/build-docs.yml

        if: always()
        needs:
          - build-docs
        runs-on: ubuntu-latest
        steps:
          - name: Decide whether the needed jobs succeeded or failed
            uses: re-actors/alls-green@release/v1
            with:
              jobs: ${{ toJSON(needs) }}
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 03:12:00 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top