#211211th of 358 in Backends, databases and hosting

tortoise-orm

Async Python ORM with a Django-like API and built-in migrations

Releases and problems feed (RSS)

Stars
5.6k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 30 weeks+134
26 Apr 2026: 5,510 stars3 May 2026: 5,513 stars10 May 2026: 5,517 stars17 May 2026: 5,522 stars24 May 2026: 5,529 stars31 May 2026: 5,534 stars7 Jun 2026: 5,539 stars14 Jun 2026: 5,544 stars21 Jun 2026: 5,553 stars28 Jun 2026: 5,561 stars5 Jul 2026: 5,566 stars12 Jul 2026: 5,572 stars19 Jul 2026: 5,578 stars26 Jul 2026: 5,582 stars2 Aug 2026: 5,586 stars9 Aug 2026: 5,589 stars16 Aug 2026: 5,590 stars23 Aug 2026: 5,593 stars30 Aug 2026: 5,602 stars6 Sept 2026: 5,605 stars13 Sept 2026: 5,612 stars20 Sept 2026: 5,616 stars27 Sept 2026: 5,617 stars4 Oct 2026: 5,619 stars11 Oct 2026: 5,621 stars18 Oct 2026: 5,627 stars25 Oct 2026: 5,630 stars1 Nov 2026: 5,635 stars8 Nov 2026: 5,642 stars15 Nov 2026: 5,643 stars22 Nov 2026: 5,644 stars

5,510 on 26 Apr 20265,644 on 22 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Tortoise ORM is an asyncio object-relational mapper for Python 3.10+ with a Django-style model and query API. It supports SQLite, PostgreSQL, MySQL, Microsoft SQL Server and Oracle, and ships a migration CLI (init, makemigrations, migrate, sqlmigrate). It is a general database library, not an AI project, so it fits the backends category as a data layer for apps.

Who it is for: Python developers building async apps (FastAPI, Sanic) who want an ORM

Strengths

  • Async-native API with Django-like models, filters, prefetch_related and related-field lookups
  • Built-in migrations: autodetect changes, RunPython/RunSQL, reversible ops, SQL preview
  • Covers SQLite, PostgreSQL, MySQL, MS SQL and Oracle, with a choice of drivers for some
  • Publishes benchmarks against other Python ORMs on PostgreSQL 17

Weaknesses

  • A library only: no server, auth, storage or hosting, so it is not a full backend
  • MS SQL and Oracle both go through the asyncodbc extra
  • generate_schemas is development-only; production needs the migration framework
  • No AI or LLM features; it is a general-purpose ORM

What it needs

  • no GPU
  • Needs Python 3.10+, aiosqlite (SQLite default), asyncpg or psycopg (PostgreSQL), aiomysql or asyncmy (MySQL), asyncodbc (MS SQL, Oracle)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 358
Also in Backends, databases and hosting
RankProjectScore
#209arangodbMulti-model database for graphs, JSON documents and full-text search via AQL14.3k starscustom license67 out of 100
#210ubicloudOpen-source IaaS control plane for VMs, Postgres and Kubernetes on bare metal12.4k stars+92 (+0.7%) in 30 daysAGPL-3.067 out of 100
#212orientdbJava multi-model NoSQL database with graph, document and SQL support5k starsApache-2.067 out of 100
#213spring-cloud-gatewayAPI gateway for Spring Boot 3 with route predicates and per-route filters4.9k starsApache-2.067 out of 100
#214graphql-phpPHP implementation of the GraphQL specification, ported from graphql-js4.7k starsMIT67 out of 100