Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for store2 (0.2 sec)

  1. docs_src/body_updates/tutorial002_py39.py

        return items[item_id]
    
    
    @app.patch("/items/{item_id}", response_model=Item)
    async def update_item(item_id: str, item: Item):
        stored_item_data = items[item_id]
        stored_item_model = Item(**stored_item_data)
        update_data = item.dict(exclude_unset=True)
        updated_item = stored_item_model.copy(update=update_data)
        items[item_id] = jsonable_encoder(updated_item)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

        end
    
        rect rgba(0, 255, 255, .1)
            code ->> function: say_hi(name="Rick")
            function ->> code: return stored result
        end
    
        rect rgba(0, 255, 255, .1)
            code ->> function: say_hi(name="Camila")
            function ->> code: return stored result
        end
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/body-updates.md

        Die Beispiele hier verwenden `.copy()` fΓΌr die KompatibilitΓ€t mit Pydantic v1, Sie sollten jedoch stattdessen `.model_copy()` verwenden, wenn Sie Pydantic v2 verwenden kΓΆnnen.
    
    Wie in `stored_item_model.model_copy(update=update_data)`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="33"
        {!> ../../../docs_src/body_updates/tutorial002_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:37 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/events.md

    Doing that in separated functions that don't share logic or variables together is more difficult as you would need to store values in global variables or similar tricks.
    
    Because of that, it's now recommended to instead use the `lifespan` as explained above.
    
    ## Technical Details
    
    Just a technical detail for the curious nerds. πŸ€“
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/custom-docs-ui-assets.md

    ### Project file structure
    
    Let's say your project file structure looks like this:
    
    ```
    .
    β”œβ”€β”€ app
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   β”œβ”€β”€ main.py
    ```
    
    Now create a directory to store those static files.
    
    Your new file structure could look like this:
    
    ```
    .
    β”œβ”€β”€ app
    β”‚Β Β  β”œβ”€β”€ __init__.py
    β”‚Β Β  β”œβ”€β”€ main.py
    └── static/
    ```
    
    ### Download the files
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/sql-databases.md

    ### About `request.state`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  7. docs_src/body_updates/tutorial002_py310.py

        return items[item_id]
    
    
    @app.patch("/items/{item_id}", response_model=Item)
    async def update_item(item_id: str, item: Item):
        stored_item_data = items[item_id]
        stored_item_model = Item(**stored_item_data)
        update_data = item.dict(exclude_unset=True)
        updated_item = stored_item_model.copy(update=update_data)
        items[item_id] = jsonable_encoder(updated_item)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1010 bytes
    - Viewed (0)
  8. docs/en/docs/how-to/extending-openapi.md

    ```Python hl_lines="22-24"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Cache the OpenAPI schema
    
    You can use the property `.openapi_schema` as a "cache", to store your generated schema.
    
    That way, your application won't have to generate the schema every time a user opens your API docs.
    
    It will be generated only once, and then the same cached schema will be used for the next requests.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. 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; πŸšΆβ€β™€οΈ ⚫️ 🌐 "βš“οΈ" πŸ‘ˆ πŸ’ͺ ⚫️ πŸ‘ˆ 🎯 πŸ“¨, ↩️ πŸ€™ πŸ”— πŸ’— πŸ•° 🎏 πŸ“¨.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  10. docs/en/docs/async.md

    The fast food store has 8 processors (cashiers/cooks). While the concurrent burgers store might have had only 2 (one cashier and one cook).
    
    But still, the final experience is not the best. 😞
    
    ---
    
    This would be the parallel equivalent story for burgers. πŸ”
    
    For a more "real life" example of this, imagine a bank.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top