python-db
CommunityMaster async SQLAlchemy patterns & migrations.
Authoranicdh
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Async database access patterns in Python are error-prone and repetitive without a cohesive approach; this Skill provides a structured, production-ready guide for using SQLAlchemy asynchronously, including engine creation, AsyncSession management, declarative models, and migrations.
Core Features & Use Cases
- Async engine setup and AsyncSession usage for PostgreSQL with async drivers
- Declarative models with explicit tablename and mapped_column definitions
- Async queries using select() with proper result handling and caution against deprecated APIs
- Transactional patterns with commit and rollback to ensure atomic operations
- Alembic-based migrations to evolve schemas safely in production environments
Quick Start
Create a minimal async SQLAlchemy setup in your Python project and run a simple select() query to verify connectivity.
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: python-db Download link: https://github.com/anicdh/agstack/archive/main.zip#python-db 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 471,000+ vetted skills library on demand.