Skip to content

Add monorm - #133

Open
mh-alahdadian wants to merge 1 commit into
timofurrer:mainfrom
mh-alahdadian:patch-1
Open

mh-alahdadian wants to merge 1 commit into
timofurrer:mainfrom
mh-alahdadian:patch-1

Conversation

@mh-alahdadian

Copy link
Copy Markdown

What is this project?

monorm is an async ORM for Python and TypeScript with a Rust core (through PyO3). You write the schema in a schema.prisma file, and it runs on PostgreSQL and SQLite. pip install monorm, MIT licensed.

Link: https://github.com/UniForgeStack/monorm

Why is it awesome?

  • Async first: every query is awaited, and the query planning and SQL run in Rust.
  • Fast: end to end, 1.97× faster than Django async and 2.56× faster than SQLAlchemy async (geometric mean over 20 cases). The smallest gain is on transactions (tx-5: 1.10× and 1.19×). Results
  • One schema and one query API for Python and TypeScript.
  • A Django-style model API (Model.objects, load() for relations).

# What is this project?

monorm is an async ORM for Python and TypeScript with a Rust core (through PyO3). You write the schema in a `schema.prisma` file, and it runs on PostgreSQL and SQLite. `pip install monorm`, MIT licensed.

Link: https://github.com/UniForgeStack/monorm

# Why is it awesome?

- Async first: every query is awaited, and the query planning and SQL run in Rust.
- Fast: end to end, 1.97× faster than Django async and 2.56× faster than SQLAlchemy async (geometric mean over 20 cases). The smallest gain is on transactions (`tx-5`: 1.10× and 1.19×). [Results](https://github.com/UniForgeStack/monorm/blob/main/bench/RESULTS.md#speed-up-summary)
- One schema and one query API for Python and TypeScript.
- A Django-style model API (`Model.objects`, `load()` for relations).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant