SQLAlchemy 2.0+
Installation
SKILL.md
SQLAlchemy 2.0+ Skill
Quick Start
Basic Setup
from sqlalchemy.ext.asyncio import AsyncAttrs, async_sessionmaker, create_async_engine, AsyncSession
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
import asyncio
# Base class for models
class Base(AsyncAttrs, DeclarativeBase):
pass
# Async engine
engine = create_async_engine("postgresql+asyncpg://user:pass@localhost/db")
# Session factory
Related skills
More from slanycukr/riot-api-project
axios
Promise-based HTTP client for making requests from browser and Node.js
140radix-ui
Build accessible, unstyled React UI components with Radix Primitives
56structlog
Structured logging for Python applications with context support and powerful processors
46uvicorn
ASGI server for Python web applications - Fast, production-ready server for async frameworks
41httpx
A next-generation HTTP client for Python with both sync and async support, perfect for modern Python applications
36apscheduler
Advanced Python Scheduler - Task scheduling and job queue system
20