⭐ FeaturedExperto
Production Python Microservice
Complete production-ready Python FastAPI microservice
Prompt Completo
Write a production-ready Python FastAPI microservice: async REST API with Pydantic v2 models, SQLAlchemy 2.0 async ORM with Alembic migrations, JWT authentication with refresh token rotation, Redis caching layer, rate limiting, structured logging, Docker multi-stage build, health check endpoints, pytest with async test fixtures, GitHub Actions CI/CD, OpenAPI documentation
Compatible con
✨GPT-4o✨Claude 3.5 Sonnet✨Cursor✨GitHub Copilot
Principiante Rating
4.9(5,200)
Stats
12,000Vistas
2,800Copias
5,200Me gusta
2,800Guardados
Salida Esperada✨ Alta Calidad
A complete production-ready FastAPI microservice with async endpoints, JWT auth, Docker, and CI/CD
The AI would generate a complete project structure:
main.py:
from fastapi import FastAPI, Depends
from sqlalchemy.ext.asyncio import AsyncSession
app = FastAPI()
@app.get("/health")
async def health_check(): return {"status": "ok"}
@app.post("/api/v1/items")
async def create_item(
item: ItemCreate,
db: AsyncSession = Depends(get_db),
current_user: User = Depends(get_current_user)
):
...
Plus: models/, schemas/, auth/, middleware/,
Dockerfile, docker-compose.yml,
.github/workflows/ci.yml, tests/