{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"Provides Active Record-style mixins for SQLAlchemy ORM, enabling Django-like query syntax, eager loading, and CRUD operations on model classes.","skillfed_tags":["orm-helper","activerecord-pattern","django-migration"],"use_cases":["Migrate from Django ORM to SQLAlchemy while keeping familiar query syntax and reducing code rewrite effort.","Build Flask or FastAPI apps where you want Active Record convenience without a full framework ORM.","Reduce boilerplate in SQLAlchemy projects by replacing repetitive session.query() chains with model methods.","Implement eager loading strategies (nested joins, subqueries) with cleaner syntax than raw SQLAlchemy.","Add automatic created_at and updated_at timestamp tracking to models without manual column management."],"what_it_does":"sqlalchemy-mixins adds Active Record and Django-inspired ORM patterns on top of SQLAlchemy's Data Mapper architecture. Instead of writing session.query(User).filter(...).all(), you call User.where(...).all() directly on the model class. The package provides mixins you inherit into your model base class to gain CRUD shortcuts (create, update, delete, find), query helpers (all, first, where), eager-load control (with_joined, with_subquery), and automatic timestamp tracking.\n\nIt's designed to feel familiar to developers coming from Django or Eloquent ORM while remaining framework-agnostic. The library handles the session plumbing internally once you set it up, reducing boilerplate. It covers serialization to dict, nested eager loading with joinedload and subqueryload, and filtering by relations using Django-style double-underscore syntax.","worth_installing":"Yes, if you are starting a new SQLAlchemy project and prefer Active Record patterns or migrating from Django. No, if you need active maintenance\u2014the dormant status (last release 2023-08-29) means security patches and compatibility updates are unlikely. Suitable for stable, low-change codebases; risky for projects requiring ongoing support."},"id":"sqlalchemy-mixins","links":{"html":"https://skillfed.io/packages/sqlalchemy-mixins","md":"https://skillfed.io/packages/sqlalchemy-mixins.md","pypi":"https://pypi.org/project/sqlalchemy-mixins/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-08-29","license_spdx":null,"license_treatment":"permissive","name":"sqlalchemy-mixins","python_support":"unspecified","summary":"Active Record, Django-like queries, nested eager load and beauty __repr__ for SQLAlchemy"},"popularity":{"monthly_downloads":410284,"position":6865,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.5"}
