Skip to content
Circuit edited this page Jan 16, 2022 · 4 revisions

apgorm

apgorm is an asynchronous ORM for PostgreSQL, wrapped around asyncpg. apgorm has several notable features:

  • Fairly straightforward and easy to use.
  • Support for basic migrations.
  • Protects against SQL injection.
  • Python-side converters and validators.
  • Decent many-to-many support.
  • Fully type-checked.
  • Tested.

Installation

apgorm can be installed from PyPI with pip install apgorm.

Examples

There are a few examples that can be run with python -m examples.<example name>. Make sure you have a Postgres database created with the name "apgorm_testing_database".

There are also examples that can be found in this wiki.

Contributing

PRs are welcome, but make sure to read the contribution guidelines.