You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
The `orm` package is an async ORM for Python, with support for Postgres,
16
+
MySQL, and SQLite. ORM is built with:
17
+
18
+
*[SQLAlchemy core][sqlalchemy-core] for query building.
19
+
*[`databases`][databases] for cross-database async support.
20
+
*[`typesystem`][typesystem] for data validation.
21
+
22
+
Because ORM is built on SQLAlchemy core, you can use Alembic to provide
23
+
database migrations.
24
+
25
+
**ORM is still under development: We recommend pinning any dependencies with `orm~=0.1`**
26
+
27
+
---
28
+
29
+
## Installation
30
+
31
+
```shell
32
+
$ pip install orm
33
+
```
34
+
35
+
You can install the required database drivers with:
36
+
37
+
```shell
38
+
$ pip install orm[postgresql]
39
+
$ pip install orm[mysql]
40
+
$ pip install orm[sqlite]
41
+
```
42
+
43
+
Driver support is provided using one of [asyncpg][asyncpg], [aiomysql][aiomysql], or [aiosqlite][aiosqlite].
44
+
Note that if you are using any synchronous SQLAlchemy functions such as `engine.create_all()` or [alembic][alembic] migrations then you still have to install a synchronous DB driver: [psycopg2][psycopg2] for PostgreSQL and [pymysql][pymysql] for MySQL.
45
+
46
+
---
47
+
48
+
## Quickstart
49
+
50
+
**Note**: Use `ipython` to try this from the console, since it supports `await`.
0 commit comments