tortoise-orm 0.18.1


Easy async ORM for python, built with relations in mind

Easy async ORM for python, built with relations in mind

Stars: 2628, Watchers: 2628, Forks: 235, Open Issues: 300

The tortoise/tortoise-orm repo was created 3 years ago and was last updated 11 hours ago.
The project is very popular with an impressive 2628 github stars!

How to Install tortoise-orm

You can install tortoise-orm using pip

pip install tortoise-orm

or add it to a project with poetry

poetry add tortoise-orm

Package Details

Andrey Bondar
GitHub Repo


  • Database
  • Software Development/Libraries/Python Modules
No  tortoise-orm  pypi packages just yet.


A list of common tortoise-orm errors.

No  tortoise-orm  errors just yet.

Code Examples

Here are some tortoise-orm code examples and snippets.

No  tortoise-orm  code examples just yet.

GitHub Issues

The tortoise-orm package as 300 open issues on GitHub

  • Custom Managers should be inherited to subclasses
  • Postgres JSON field error when using orjson package
  • Fastapi example test not working
  • Allow manual SQL from tests
  • Allow function to be passed to table
  • Allow validators to run async and do database IO
  • UPSERT - Add on conflict do update for bulk_create
  • Is it possible to use multiple MySQL databases/schemas on the same connection?
  • Automatically create and update m2m_relation
  • How to prefetch only the primary keys for a Many to Many Relation?
  • Consider removing uvloop from the accel extra deps
  • Getting Weird Error Resetting connection with an active transaction <asyncpg.connection.Connection object at 0x…>
  • Nested join does not prefetch the object.
  • add test for accessing a query
  • Unclosed client session

See more issues on GitHub

See Also

piccolo 0.64.0

A fast, user friendly ORM and query builder which supports asyncio.