Provides a mixin and utilities to add soft-deletion (deleted_at column) to SQLAlchemy ORM models. Version 0.9.0 supports SQLAlchemy 2.x and requires Python >=3.10. Actively maintained.
pip install sqlalchemy-easy-softdeleteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a model with soft-delete support. The delete() method on the session performs a soft delete by setting deleted_at timestamp.
Use session.execute() with a DELETE statement for hard deletes.
Update import to from sqlalchemy_easy_softdelete.mixin import SoftDeleteMixin.
Use query = session.query(User).with_deleted() to include soft-deleted rows.