Convert asyncpg FastAPI project to SQLAlchemy async patterns
Converts asyncpg FastAPI projects to SQLAlchemy 2.0+ with async support. It analyzes your code, creates backups, and systematically transforms connection patterns, queries, and transactions while preserving functionality.
/plugin marketplace add kivo360/claude-toolbelt/plugin install asyncpg-to-sqlalchemy-converter@claude-toolbeltConvert asyncpg FastAPI project to SQLAlchemy async patterns
This command analyzes a FastAPI project, detects all asyncpg usage patterns, and systematically converts them to SQLAlchemy 2.0+ with async support while maintaining full functionality.
/convert-asyncpg-to-sqlalchemy [options]
--path <directory>: Project directory to analyze (default: current directory)--backup <directory>: Backup location before conversion (default: ./backup_asyncpg)--supabase: Enable Supabase-specific optimizations and integrations--models-only: Only convert models, skip utility functions--dry-run: Preview changes without modifying files--interactive: Prompt for confirmation on major changesConvert current directory with Supabase support:
/convert-asyncpg-to-sqlalchemy --supabase
Dry run to preview changes:
/convert-asyncpg-to-sqlalchemy --dry-run --path ./my-fastapi-app
Interactive conversion with custom backup:
/convert-asyncpg-to-sqlalchemy --path ./src --backup ./original_code --interactive