v0.1.0 — First public release
First public release — now on PyPI.
pip install erriumErrium normalizes uncaught exceptions, HTTP exceptions, and request validation errors into one consistent, frontend-safe JSON shape.
Highlights
- Framework-agnostic core (
errium_core) — classification engine, contracts, formatters, normalizers, and dev/prod sanitization viaERRIUM_DEBUG. - Four adapters — FastAPI (
errium), Flask (errium[flask]), Django Ninja (errium[ninja]), and Django REST Framework (errium[drf]). - Database classification — SQLAlchemy errors map to
DATABASE_ERROR, uniqueness violations toDUPLICATE_RESOURCE, with no hard SQLAlchemy dependency. - Fully typed — all five packages ship
py.typed; the source is checked undermypy --strict.