PyPika-ORM – ORM for PyPika SQL Query Builder
The package gives you ORM for PyPika with asycio support for a range of databases (SQLite, PostgreSQL, MySQL). Warning The project is in early pre-alpha state and not ready for production Requirements Installation pypyka-orm should be installed using pip: $ pip install pypika-orm You can install the required database drivers with: $ pip install pypika-orm[sqlite] $ pip install pypika-orm[postgresql] $ pip install pypika-orm[mysql] Usage from pypika_orm import Model, fields class Role(Model): id = fields.Auto() name = fields.Varchar(max_length=100, default=’user’) class User(Model): […]
Read more