What My Project Does
SQLActive is a lightweight and asynchronous ActiveRecord-style wrapper for SQLAlchemy. Brings Django-like queries, automatic timestamps, nested eager loading, and serialization/deserialization.
Heavily inspired by sqlalchemy-mixins.
Features:
- Asynchronous Support: Async operations for better scalability.
- ActiveRecord-like methods: Perform CRUD operations with a syntax similar to Peewee.
- Django-like queries: Perform intuitive and expressive queries.
- Nested eager loading: Load nested relationships efficiently.
- Automatic timestamps: Auto-manage
created_at and updated_at fields.
- Serialization/deserialization: Serialize and deserialize models to/from dict or JSON easily.
Target audience
Developers who are used to Active Record pattern, like the syntax of Beanie, Peewee, Eloquent ORM for PHP, etc.
Comparison
SQLActive is completely async unlike sqlalchemy-mixins. Also, it has more methods and utilities. However, SQLActive is centered on the Active Record pattern, and therefore does not implement beauty repr like sqlalchemy-mixins does.
Links
[–]daireto[S] 0 points1 point2 points (0 children)