$ show MasoniteFramework/orm
Masonite ORM is a Python Object-Relational Mapping library designed for database abstraction across MySQL, PostgreSQL, SQLite, and MSSQL. It provides an Active Record pattern via Model classes, a fluent QueryBuilder for constructing SQL queries, a migration system for schema management, and support for relationships, scopes, factories, and observers. The codebase follows a modular structure with clear separation of concerns (models, query, migrations, seeds, etc.) and includes a CLI for common database operations. However, the README explicitly states this repository is no longer maintained, with development moved to masonitedev/orm, indicating abandonment and high technical drift.
The LLM identified 3 files worth highlighting for reuse:
Implements a fluent, immutable collection utility for data processing with methods like map, filter, pluck, and groupBy. It is self-contained, depends only on standard library and inflection, and can be extracted for use in any data processing task unrelated to ORM functionality.
Provides a fluent interface for defining database schema (columns, indexes, constraints) using the Builder pattern. It is database-agnostic through platform-specific implementations and encapsulates schema logic in a reusable, extensible manner suitable for migration systems or schema generators.
Implements the Scope pattern to add global query constraints (soft deletes) to models. It is loosely coupled, depends only on the base scope and model, and demonstrates a clean, reusable pattern for encapsulating common query modifications that can be applied to any ORM or query builder.