Loading...
Loading...
FastAPI Python async framework with Pydantic and automatic OpenAPI. Use for Python APIs.
npx skill4agent add g1joshi/agent-skills fastapifrom fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Item(BaseModel):
name: str
price: float
@app.post("/items/")
async def create_item(item: Item):
return {"name": item.name, "price": item.price}async def read_users(db: Session = Depends(get_db)):/docslifespanlifespanon_eventdefasync def