{"id":18578600,"url":"https://github.com/jeanphix/sqla-paranoid","last_synced_at":"2025-04-10T10:31:17.232Z","repository":{"id":21519845,"uuid":"93156511","full_name":"jeanphix/sqla-paranoid","owner":"jeanphix","description":"Brings transparent soft delete to SQLAlchemy ORM.","archived":false,"fork":false,"pushed_at":"2023-09-15T14:03:36.000Z","size":7,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-24T19:39:35.649Z","etag":null,"topics":["python","softdelete","sqlalchemy"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeanphix.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-02T10:48:37.000Z","updated_at":"2022-03-11T23:24:38.000Z","dependencies_parsed_at":"2024-11-06T23:39:06.618Z","dependency_job_id":"ab9feb64-3fdc-4b20-84de-2ae73f4339aa","html_url":"https://github.com/jeanphix/sqla-paranoid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeanphix%2Fsqla-paranoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeanphix%2Fsqla-paranoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeanphix%2Fsqla-paranoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeanphix%2Fsqla-paranoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeanphix","download_url":"https://codeload.github.com/jeanphix/sqla-paranoid/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","softdelete","sqlalchemy"],"created_at":"2024-11-06T23:36:13.379Z","updated_at":"2025-04-10T10:31:16.970Z","avatar_url":"https://github.com/jeanphix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Paranoid\n========\n\nBrings transparent soft delete to SQLAlchemy ORM.\n\n.. image:: https://travis-ci.org/jeanphix/sqla-paranoid.svg?branch=dev\n   :target: https://travis-ci.org/jeanphix/sqla-paranoid\n   :alt: Build Status\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n    pip install sqla-paranoid\n\n\nUsage\n-----\n\n.. code-block:: python\n\n    from paranoid.models import (\n        Model,\n        Query,\n        Session,\n    )\n\n    class User(Model):\n        __tablename__ = 'user'\n        __softdelete__ = True\n\n        id = Column(Integer, primary_key=True)\n        name = Column(String)\n\n\n    engine = create_engine('sqlite://')\n    session = sessionmaker(engine, class_=Session, query_cls=Query)()\n\n    session.query(User)\n\n\nFlask\n-----\n\nParanoid comes with a ready to use ``Flask`` extension built\non top of Flask-SQLAlchemy:\n\n\n.. code-block:: python\n\n    from paranoid.flask import SQLAlchemy\n\n\n    db = SQLAlchemy(app)\n\n    Model = db.Model\n\n\n    class User(Model):\n        __softdelete__ = True\n\n        id = Column(Integer, primary_key=True)\n        name = Column(String)\n\n    User.query\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeanphix%2Fsqla-paranoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeanphix%2Fsqla-paranoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeanphix%2Fsqla-paranoid/lists"}