Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for again (0.14 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    ```Python hl_lines="18-20"
    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    For the **next request**, as we will reset that context variable again in the `async` dependency `reset_db_state()` and then create a new connection in the `get_db()` dependency, that new request will have its own database state (connection, transactions, etc).
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  2. 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)
  3. 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`:
    
    ```Python hl_lines="1"
    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)
  4. tests/test_default_response_class.py

    router_a_a = APIRouter()
    router_a_b_override = APIRouter()  # Overrides default class
    router_b_override = APIRouter()  # Overrides default class
    router_b_a = APIRouter()
    router_b_a_c_override = APIRouter()  # Overrides default class again
    
    
    @app.get("/")
    def get_root():
        return {"msg": "Hello World"}
    
    
    @app.get("/override", response_class=PlainTextResponse)
    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

        * This is a breaking change (and only slightly) if you used dependencies with `yield`, used `except` in those dependencies, and didn't raise again.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs/en/docs/tutorial/body-nested-models.md

        "price": 42.0,
        "tax": 3.2,
        "tags": ["rock", "metal", "bar"],
        "image": {
            "url": "http://example.com/baz.jpg",
            "name": "The Foo live"
        }
    }
    ```
    
    Again, doing just that declaration, with **FastAPI** you get:
    
    * Editor support (completion, etc.), even for nested models
    * Data conversion
    * Data validation
    * Automatic documentation
    
    ## Special types and validation
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-updates.md

    * Convert the copied model to something that can be stored in your DB (for example, using the `jsonable_encoder`).
        * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`.
    * Save the data to your DB.
    * Return the updated model.
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/oauth2-scopes.md

    It will have a property `scopes` with a list containing all the scopes required by itself and all the dependencies that use this as a sub-dependency. That means, all the "dependants"... this might sound confusing, it is explained again later below.
    
    The `security_scopes` object (of class `SecurityScopes`) also provides a `scope_str` attribute with a single string, containing those scopes separated by spaces (we are going to use it).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/custom-docs-ui-assets.md

    {!../../../docs_src/custom_docs_ui/tutorial002.py!}
    ```
    
    ### Include the custom docs for static files
    
    And the same way as with a custom CDN, now you can create the *path operations* for the custom docs.
    
    Again, 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)
  10. docs/en/docs/tutorial/request-files.md

        * E.g., `await myfile.seek(0)` would go to the start of the file.
        * This is especially useful if you run `await myfile.read()` once and then need to read the contents again.
    * `close()`: Closes the file.
    
    As all these methods are `async` methods, you need to "await" them.
    
    For example, inside of an `async` *path operation function* you can get the contents with:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top