semvec/pypi-packages huggingface dataset:
sqla-paranoid 0.1.1
Brings transparent soft delete to SQLAlchemy ORM
License: MIT

Paranoid
========

Brings transparent soft delete to SQLAlchemy ORM.

.. image:: https://travis-ci.org/jeanphix/sqla-paranoid.svg?branch=dev
   :target: https://travis-ci.org/jeanphix/sqla-paranoid
   :alt: Build Status


Installation
------------

.. code-block:: bash

    pip install sqla-paranoid


Usage
-----

.. code-block:: python

    from paranoid.models import (
        Model,
        Query,
        Session,
    )

    class User(Model):
        __tablename__ = 'user'
        __softdelete__ = True

        id = Column(Integer, primary_key=True)
        name = Column(String)


    engine = create_engine('sqlite://')
    session = sessionmaker(engine, class_=Session, query_cls=Query)()

    session.query(User)


Flask
-----

Paranoid comes with a ready to use ``Flask`` extension built
on top of Flask-SQLAlchemy:


.. code-block:: python

    from paranoid.flask import SQLAlchemy


    db = SQLAlchemy(app)

    Model = db.Model


    class User(Model):
        __softdelete__ = True

        id = Column(Integer, primary_key=True)
        name = Column(String)

    User.query
micropython-tracemalloc 0.0.0
Dummy tracemalloc module for MicroPython
License: MIT

This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
micropython-importlib.resources 0.0.0
Dummy importlib.resources module for MicroPython
License: MIT

This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.