Skip to main content

Default adapters for Framework M (SQLAlchemy, Redis, Litestar)

Project description

Framework M Standard

PyPI version Python 3.12+ License GitLab Pipeline Status Code style: ruff

Default adapters and Desk UI serving for Framework M.

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
  • Desk UI Serving - Bundled frontend assets served at /desk/

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

Apache 2.0 License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framework_m_standard-0.4.2.tar.gz (620.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framework_m_standard-0.4.2-py3-none-any.whl (518.7 kB view details)

Uploaded Python 3

File details

Details for the file framework_m_standard-0.4.2.tar.gz.

File metadata

  • Download URL: framework_m_standard-0.4.2.tar.gz
  • Upload date:
  • Size: 620.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for framework_m_standard-0.4.2.tar.gz
Algorithm Hash digest
SHA256 88e71a4f67aeecff7f6fae3153e1e62789d6797489b26c3721d56a6f63ebe383
MD5 391646e581b7a42c57e57047cd8a6800
BLAKE2b-256 30fd10005300aaa8fa8145bb0d881f82faa0354fb0c4f66cab19691de7fdaf6d

See more details on using hashes here.

File details

Details for the file framework_m_standard-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for framework_m_standard-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f8e52dbcccf7aba0143f5477b9fea1a85693c473648f58e2c95d9be0873aab0
MD5 9f5b7e58f8a438caddcd441cf6bba71f
BLAKE2b-256 447478cc7b8512861208a7fbeb5613c802e0fc60b54ec462592da4bbb6b2b2bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page