I put together a small library after getting tired of rewriting the same CRUD and filtering code in a FastAPI + SQLAlchemy project.
It’s meant to provide type-safe CRUD on SQLAlchemy 2.x (async), with mypy/typing as a first-class concern. Pydantic schema mapping is optional.
I’m not sure the abstraction is worth it outside our codebase, so I’d like feedback: does this feel like it solves a real problem, or is it just adding another layer?
Repo: https://github.com/4jades/base-repository
reply