Fastapi

From ayazelrico/Old-Version-Of-Milyonus-Agent · View interactive version

Fastapi is an AI agent skill from the GitHub repository ayazelrico/Old-Version-Of-Milyonus-Agent. Build async Python web APIs with FastAPI

How to use this skill

Skill file

FastAPI

Minimal app

from fastapi import FastAPI, HTTPException
from pydantic import BaseModel

app = FastAPI()


class Item(BaseModel):
    name: str
    price: float


@app.get("/items/{item_id}")
async def read(item_id: int):
    if item_id < 1:
        raise HTTPException(404, "not found")
    return {"id": item_id}


@app.post("/items")
async def create(item: Item):
    return item

Run

uvicorn main:app --reload            # development
uvicorn main:app --host 0.0.0.0 --port 8000 --workers 4   # production

Patterns

Production

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.