
Python Backend
Backend patterns for FastAPI, async SQLAlchemy, JWT auth, and Upstash caching, rate limiting, and background jobs.
- skills.sh installs
- 2.2K
- GitHub stars
- 10
- last updated
- Aug 21, 2026
What it does
- Covers FastAPI project layout, async routes, Pydantic validation, dependency injection, and testing patterns
- Includes reference guides for security (JWT, OAuth2, password hashing, CORS, API keys), database (transactions, eager loading, migrations), and Upstash (Redis, rate limiting, QStash)
- Enforces async-first I/O, typed Pydantic models, and validate-early error handling with HTTPException
- Designed for Python teams building production REST APIs, or cleaning up AI-generated Python code
Install
$ npx -y skills add jiatastic/open-python-skills --skill python-backend -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
python-backend
Production-ready Python backend patterns for FastAPI, SQLAlchemy, and Upstash.
When to Use This Skill
- Building REST APIs with FastAPI
- Implementing JWT/OAuth2 authentication
- Setting up SQLAlchemy async databases
- Integrating Redis/Upstash caching and rate limiting
- Refactoring AI-generated Python code
- Designing API patterns and project structure
Core Principles
- Async-first - Use async/await for I/O operations
- Type everything - Pydantic models for validation
- Dependency injection - Use FastAPI's Depends()
- Fail fast - Validate early, use HTTPException
- Security by default - Never trust user input
Quick Patterns
Project Structure
src/
├── auth/
│ ├── router.py # endpoints
│ ├── schemas.py # pydantic models
│ ├── models.py # db models
│ ├── service.py # business logic
│ └── dependencies.py
├── posts/
│ └── ...
├── config.py
├── database.py
└── main.py
Async Routes
# BAD - blocks event loop
@router.get("/")
async def bad():
time.sleep(10) # Blocking!
# GOOD - runs in threadpool
@router.get("/")
def good():
time.sleep(10) # OK in sync function
Details
- Repository
- github.com/jiatastic/open-python-skills
- Categories
- Backend & APIs, Python
Similar to Python Backend
More Backend & APIs
fastapi-pythonmindrally/skills14.1K installsExpert FastAPI guidance for async Python APIs with modular structure and explicit error-handling conventions.
backend-developmentmoizibnyousaf/ai-agent-skills875 installsBackend API, database, and caching patterns with test-driven development guidance for designing server systems.
fastapi-templatessickn33/agentic-awesome-skills307 installsProduction-ready FastAPI project scaffolding with async patterns, dependency injection, and error handling baked in.
nodejs-backend-patternswshobson/agents50.4K installsProduction-ready Node.js backend patterns for Express or Fastify services, REST, GraphQL, and microservices.
fastapi-developmentaj-geddes/useful-ai-prompts626 installsProduction-ready FastAPI guide covering async routes, Pydantic validation, dependency injection, and JWT security.
fastapi-expertjeffallan/claude-skills6.5K installsBuild async Python REST APIs with FastAPI and Pydantic V2, including auth, database, and WebSocket patterns.