fastapi-database-setup
CommunitySet up an async DB layer for FastAPI.
Authoragusmdev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a clean, reusable setup for an async SQLAlchemy 2.0 engine, a session factory, and a FastAPI dependency to access the database, simplifying database integration in FastAPI apps.
Core Features & Use Cases
- Async engine + session factory with SQLAlchemy 2.0 and PostgreSQL using asyncpg.
- A get_db dependency to inject a database session into FastAPI routers.
- Safe shutdown and explicit session lifecycle management to prevent leaks.
Quick Start
Create src/app/database.py and src/app/dependencies.py as described, then use get_db in your FastAPI routes with Depends(get_db).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fastapi-database-setup Download link: https://github.com/agusmdev/burntop/archive/main.zip#fastapi-database-setup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.