repowiseabsent1706/sqlalchemy-mixins

Architecture of absent1706/sqlalchemy-mixins

absent1706/sqlalchemy-mixins is 42 source files holding 500 symbols across 3 modules, written mainly in Python. The largest module is sqlalchemy_mixins, with 31 files.

How sqlalchemy-mixins fits together

Install the package with pip, add a mixin such as AllFeaturesMixin to a model class, and pass your session to BaseModel.set_session at startup. The examples/all_features.py file shows the mixins in use, and examples/activerecord.py is a separate example of the Active Record methods. The sqlalchemy_mixins package holds the mixin modules, which share session access and column inspection code through SessionMixin and InspectionMixin.

Largest modules

  • sqlalchemy_mixins: 31 files and 2,792 lines of code
  • examples: 7 files and 647 lines of code
  • root: 1 file and 51 lines of code

Documentation

Repowise documents sqlalchemy-mixins in 77 pages generated from the source.

More on sqlalchemy-mixins: summary and FAQ, codebase overview, code health.