Spring Data SQLAlchemy (v0.1.4) brings Spring Data-style repository patterns to Python's SQLAlchemy. It provides automatic query generation from method names, dynamic queries with Example/QueryByExample, and integration with SQLAlchemy async sessions. Designed for projects requiring a familiar Spring Data DSL while using SQLAlchemy ORM.
pip install spring-data-sqlachemyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example: define a SQLAlchemy model, create a repository, save an entity.
Use session_factory=engine.connect (or lambda: Session(engine)).
Ensure your entity has a single primary key or override the find method.
Use QueryByExample for complex queries; avoid relying on method name parsing for production.