Default adapters for Framework M (SQLAlchemy, Redis, Litestar)
Project description
Framework M Standard
Default adapters for Framework M - batteries included.
Installation
pip install framework-m-standard
Or with uv:
uv add framework-m-standard
What's Included
Database Adapters
- SQLAlchemy Repository - Generic repository implementation with async support
- Schema Mapper - Automatic Pydantic → SQLAlchemy table generation
- Migration System - Alembic integration with auto-migration detection
- Unit of Work - Transaction management with optimistic concurrency control
Web Framework
- Litestar Integration - REST API with automatic OpenAPI docs
- Auth Guards - JWT authentication and permission checking
- Exception Handlers - Consistent error responses
Cache & Events
- Redis Cache - Distributed caching with TTL support
- Redis Event Bus - Pub/sub for domain events
Background Jobs
- Taskiq Integration - Background job processing with NATS JetStream
- Outbox Pattern - Reliable event publishing
Supported Databases
| Database | Status |
|---|---|
| PostgreSQL | ✅ Full support |
| SQLite | ✅ For testing |
| MySQL | 🔜 Planned |
Usage
This package is typically used as a dependency of framework-m.
For most applications, install the full framework-m package instead.
from framework_m_standard.adapters.db import GenericRepository
from framework_m_standard.adapters.cache import RedisCache
from framework_m_standard.adapters.web import create_litestar_app
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file framework_m_standard-0.2.16.tar.gz.
File metadata
- Download URL: framework_m_standard-0.2.16.tar.gz
- Upload date:
- Size: 291.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e379a055efe62881bc96c486537c781787c794309965b67f4bbbf3250e4f8f9f
|
|
| MD5 |
3748a120ff411e1c1723a394a4c0da90
|
|
| BLAKE2b-256 |
6f6f198e8d298121ee6a6a1e9c005caa22088f2c9019c8b10b3b4a1057493f1c
|
File details
Details for the file framework_m_standard-0.2.16-py3-none-any.whl.
File metadata
- Download URL: framework_m_standard-0.2.16-py3-none-any.whl
- Upload date:
- Size: 205.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
810e2cbd0c2a5d18c09ba1c9ac7964e242c3249858fe0295e0aee7952f1a4c3c
|
|
| MD5 |
6070a99d0215c605d513bb7e5020fa79
|
|
| BLAKE2b-256 |
c2e4f5e955d2cd4b587f9a81023bc86e2b33c305275f57a0b868818afb3db7d6
|