{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Adds soft-deletion support to SQLAlchemy models with automatic query filtering and customizable mixin generation.","skillfed_tags":["soft-delete","audit-trail","orm-pattern"],"use_cases":["Implement audit trails in business applications where deleted records must remain in the database for compliance or recovery.","Build multi-tenant systems where soft-deleted data must be excluded from user-facing queries but retained for administrative review.","Add undo/restore functionality to applications without requiring complex transaction rollback or backup restoration.","Maintain referential integrity in systems where cascading hard deletes would break historical reporting or linked records.","Simplify query logic by removing the need to manually add `WHERE deleted_at IS NULL` conditions throughout the codebase."],"what_it_does":"sqlalchemy-easy-softdelete is a mixin generator that adds soft-deletion semantics to SQLAlchemy models without requiring schema changes or explicit WHERE clauses in every query. Instead of deleting records, you mark them with a timestamp (by default `deleted_at`), and the library installs a query hook that automatically filters out soft-deleted rows from all SELECT statements\u2014both in direct queries and through model relationships. You generate a customized mixin class, apply it to your models, and gain `.delete()` and `.undelete()` methods plus automatic query rewriting.\n\nThe mixin is fully configurable: you can choose the field name, its type, whether to include delete/undelete methods, and which tables the hook should ignore. This approach preserves audit trails and referential integrity while keeping deleted data invisible by default\u2014queries return only active records unless you explicitly pass `include_deleted=True` to override the filter.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and solves a common ORM problem with minimal friction. The single dependency on sqlalchemy and low install overhead make it a safe addition. Use it if your application needs soft-deletion semantics; skip it if you never need to preserve deleted records or audit trails."},"id":"sqlalchemy-easy-softdelete","links":{"html":"https://skillfed.io/packages/sqlalchemy-easy-softdelete","md":"https://skillfed.io/packages/sqlalchemy-easy-softdelete.md","pypi":"https://pypi.org/project/sqlalchemy-easy-softdelete/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-16","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"sqlalchemy-easy-softdelete","python_support":"supports_current","summary":"Easily add soft-deletion to your SQLAlchemy Models."},"popularity":{"monthly_downloads":174407,"position":10282,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.1"}
