Integrations
iron-monk is a single decorator with no metaclass tricks, so it slots into any framework that lets you decorate a class or call a function. The pages below are battle-tested recipes — copy, paste, adapt.
| If you are using… | Read |
|---|---|
| Strawberry GraphQL | Strawberry GraphQL — errors-as-data for inputs, fail-fast for headers, Maybe[T] integration via settings.type_metadata. |
| Starlette / ASGI | Starlette (ASGI) — RFC 7807 exception handlers, dict-mode and DTO-mode handlers. |
| FastAPI | FastAPI — Depends bridge for RFC 7807 errors, or Pydantic Core duck-typing to keep idiomatic handler signatures. |
| SQLAlchemy 2.0 | SQLAlchemy 2.0 — validate ORM models before commit; Mapped[T] unwrapping. |
| Tortoise ORM | Tortoise ORM — split DTO validation from Active Record persistence. |
| tyro CLI | tyro — validate dataclass-driven CLIs alongside argument parsing. |
| App startup config | App Configuration — fail-fast environment variable validation on boot. |
| beartype runtime types | Beartype — stack runtime type checking under business constraints. |
Don't see your stack? The pattern is always the same — annotate, decorate, validate at the boundary. Open an issue with your use case and it will likely become a new page.