- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for store2 (0.27 sec)
-
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) -
docs/en/docs/advanced/settings.md
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) -
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) -
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) -
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) -
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) -
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) -
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) -
docs/em/docs/tutorial/dependencies/sub-dependencies.md
``` ## βοΈ π π π π° π₯ 1οΈβ£ π π π£ π π° π *β‘ π οΈ*, πΌ, π π βοΈ β π§-π, **FastAPI** π π π€ π π§-π π΄ π π π¨. & β«οΈ π π π¨ π² <abbr title="A utility/system to store computed/generated values, to re-use them instead of computing them again.">"πΎ"</abbr> & πΆββοΈ β«οΈ π "βοΈ" π πͺ β«οΈ π π― π¨, β©οΈ π€ π π π° π π¨.
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) -
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)