Python Prompts Free Prompt

Python FastAPI CRUD with SQLAlchemy

Build a FastAPI application that performs CRUD operations on a resource using SQLAlchemy
☆ Save
Prompt
You are a Python backend developer. Build a FastAPI app for managing a list of items (e.g., tasks). Use SQLAlchemy for ORM and PostgreSQL. The app should: 1) Have endpoints to create, read, update, delete items, 2) Use Pydantic schemas, 3) Implement pagination, 4) Add filtering by fields, 5) Include database migrations with Alembic, 6) Write unit tests, 7) Provide OpenAPI docs. Provide Dockerfile and docker-compose.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.