#370370th of 403 in Backends, databases and hosting

aerich

Database migration CLI for Tortoise ORM, similar to Alembic

Stars
1.1k
License
Apache-2.0
Last commit
Nov 2026
Last release
Aug 2026
Language
Python
Stars, last 28 weeks+6
16 May 2026: 1,078 stars23 May 2026: 1,079 stars30 May 2026: 1,079 stars6 Jun 2026: 1,079 stars13 Jun 2026: 1,079 stars20 Jun 2026: 1,079 stars27 Jun 2026: 1,079 stars4 Jul 2026: 1,079 stars11 Jul 2026: 1,079 stars18 Jul 2026: 1,079 stars25 Jul 2026: 1,079 stars1 Aug 2026: 1,080 stars8 Aug 2026: 1,080 stars15 Aug 2026: 1,080 stars22 Aug 2026: 1,080 stars29 Aug 2026: 1,081 stars5 Sept 2026: 1,081 stars12 Sept 2026: 1,081 stars19 Sept 2026: 1,082 stars26 Sept 2026: 1,083 stars3 Oct 2026: 1,083 stars10 Oct 2026: 1,083 stars17 Oct 2026: 1,083 stars24 Oct 2026: 1,083 stars31 Oct 2026: 1,083 stars7 Nov 2026: 1,083 stars14 Nov 2026: 1,083 stars21 Nov 2026: 1,083 stars28 Nov 2026: 1,084 stars

1,078 on 16 May 20261,084 on 28 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Aerich generates and applies schema migrations for Tortoise ORM models. It provides a CLI (init, init-db, migrate, upgrade, downgrade, history, heads, inspectdb) and a Python Command class for running migrations from application code. The README notes that tortoise-orm 1.0.0 and later ships a built-in migration CLI (`python -m tortoise makemigrations`).

Who it is for: Python developers using Tortoise ORM who need schema migrations

Strengths

  • Autogenerates migration files from model changes, with an option to write empty ones by hand
  • inspectdb generates Tortoise models from existing MySQL, Postgres and SQLite tables
  • Supports multiple databases and per-app migration folders via --app and a {app} location
  • upgrade and downgrade accept --fake to mark migrations applied without running SQL

Weaknesses

  • tortoise-orm 1.0.0 and later has a built-in migration CLI, which may make Aerich redundant
  • Works only with Tortoise ORM, not other Python ORMs
  • inspectdb cannot infer fields such as IntEnumField and ForeignKeyField
  • Imports your Tortoise config on most commands, so the config file must stay simple

What it needs

  • no GPU
  • Needs tortoise-orm, MySQL, Postgres or SQLite database

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

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 403
Also in Backends, databases and hosting
RankProjectScore
#368devise_token_authToken-based authentication gem for Rails APIs, built on Devise and OmniAuth Live demo ↗ (opens in a new tab)3.6k starsWTFPL40 out of 100
#369matt-42/lithiumC++ libraries for HTTP servers and SQL database access1.4k starsMIT40 out of 100
#371neomodelPython object graph mapper for Neo4j with class-based models and a query API1.1k starsMIT39 out of 100
#372dicedbValkey fork that spills evicted keys to disk via RocksDB10.8k starscustom license38 out of 100
#373flask-sqlalchemyFlask extension that integrates SQLAlchemy with app config and sessions4.3k starsBSD-3-Clause38 out of 100