An asynchronous interface for the peewee ORM, enabling async database operations with asyncio for PostgreSQL and MySQL.
peewee-async is an asynchronous interface for the peewee ORM, enabling developers to perform database operations using Python's asyncio. It provides async versions of peewee's methods, allowing seamless integration of async queries into applications that use peewee for PostgreSQL and MySQL databases.
Python developers using the peewee ORM who want to incorporate asynchronous database operations into their asyncio-based applications, particularly those working with PostgreSQL or MySQL backends.
It extends the familiar peewee ORM with async capabilities without requiring a rewrite of existing models, offering a smooth transition to async workflows with support for transactions and pooled connections.
Asynchronous interface for peewee ORM powered by asyncio
Provides asynchronous versions of peewee methods with 'aio_' prefix, such as aio_create and aio_execute, enabling direct async calls without altering sync code, as shown in the Quickstart example.
Allows seamless integration with existing peewee models; sync operations remain unchanged, and async can be enabled selectively, reducing refactoring effort.
Includes asynchronous transactions, supporting complex async workflows with database consistency, which is essential for production applications.
Offers pooled database connections via classes like PooledPostgresqlDatabase, improving performance in high-concurrency async environments.
Only compatible with PostgreSQL and MySQL via specific async drivers (aiopg, psycopg3, aiomysql), excluding other databases peewee supports, such as SQLite.
The README admits 'basic operations are supported,' implying not all peewee features have async equivalents, which may restrict advanced querying or migrations.
Requires installing specific async backends (e.g., peewee-async[postgresql]), adding dependencies and potential version conflicts, especially with evolving driver libraries.
Has a deprecated documentation link, and reliance on external docs for drivers can make setup and troubleshooting more challenging for new users.
Redis Python client
PyMongo - the Official MongoDB Python driver
Async database support for Python. 🗄
Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.