- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 183 for read_items (0.19 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_invalid_path_param.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.6K bytes - Click Count (0) -
tests/test_invalid_sequence_param.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial002_py310.py
from fastapi import FastAPI from fastapi.routing import APIRoute app = FastAPI() @app.get("/items/") async def read_items(): return [{"item_id": "Foo"}] def use_route_names_as_operation_ids(app: FastAPI) -> None: """ Simplify operation IDs so that generated API clients have simpler function names. Should be called only after all routes have been added. """ for route in app.routes:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 572 bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/dependencies.md
def get_db(): db = DBSession() try: yield db finally: db.close() DBDep = Annotated[DBSession, Depends(get_db)] @app.get("/items/") async def read_items(db: DBDep): return db.query(Item).all() ``` Use the scope `"function"` when they should run the exit code after the response data is generated but before the response is sent back to the client. ```python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 3.2K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/other-tools.md
from fastapi import FastAPI app = FastAPI() def do_blocking_work(name: str) -> str: # Some blocking I/O operation return f"Hello {name}" @app.get("/items/") async def read_items(): result = await asyncify(do_blocking_work)(name="World") return {"message": result} ``` And run async code inside of blocking sync code with `syncify()`: ```python from asyncer import syncify
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 1.5K bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial003_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 148 bytes - Click Count (0) -
docs_src/header_params/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 182 bytes - Click Count (0) -
docs_src/header_params/tutorial002_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 261 bytes - Click Count (0) -
docs_src/custom_response/tutorial010_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:07:19 GMT 2026 - 228 bytes - Click Count (0) -
docs_src/custom_response/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 352 bytes - Click Count (0)