peewee-migrate
Support for migrations in Peewee ORM
Decision gist · record as of 2026-08-14
Yes. Peewee Migrate is actively maintained, has no known vulnerabilities, and provides a straightforward migration workflow for Peewee ORM users. The low install friction and permissive MIT license make it a practical choice for projects using Peewee. Install it if you need reliable schema versioning for a Peewee application.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires peewee >= 3.10 and Python >= 3.10; migration files must define a migrate() function in the migrations directory.
- Low install friction with a pure-Python wheel distribution.
- The package is actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
last release 2026-03-12 (155 days) · last repo commit 2026-04-14 · 379 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 229,713 downloads/mo, #9,125 on PyPI
Alternatives
Verify before relying
pip install peewee-migrate
from peewee_migrate import Router
from peewee import SqliteDatabase
router = Router(SqliteDatabase('test.db'))
router.create('migration_name')
router.run()- Whether autodiscovery of model changes works reliably across all project structures and import patterns.
- Performance characteristics when managing large numbers of migrations or complex schema changes.
What it is and what it does
Peewee Migrate is a migration management tool for Peewee ORM that handles database schema versioning through timestamped migration files. It works by storing migration state in your database and applying or rolling back changes in order, supporting both automatic schema detection and manual migration writing.
You can use it either as a command-line tool (pw_migrate) or programmatically via the Router class. The package handles the common workflow of creating new migrations, running pending migrations, and rolling back applied migrations. It integrates with click for CLI functionality and depends only on peewee itself, keeping the dependency footprint minimal.
Use it for
- Track and version database schema changes across development, staging, and production environments.
- Automatically generate migration files by scanning model definitions for changes.
- Roll back failed migrations or revert to earlier schema versions when needed.
- Manage migrations for Peewee-based applications without manual SQL scripting.
- Integrate migrations into deployment pipelines via the command-line interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Peewee Migrate is actively maintained, has no known vulnerabilities, and provides a straightforward migration workflow for Peewee ORM users. The low install friction and permissive MIT license make it a practical choice for projects using Peewee. Install it if you need reliable schema versioning for a Peewee application.
Install
peewee-migrate on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release and no known vulnerabilities. Requires peewee >= 3.10 and Python >= 3.10.
Requires peewee >= 3.10 and Python >= 3.10; migration files must define a migrate() function in the migrations directory.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install peewee-migrate
from peewee_migrate import Router
from peewee import SqliteDatabase
router = Router(SqliteDatabase('test.db'))
router.create('migration_name')
router.run()
Verify before relying
- Whether autodiscovery of model changes works reliably across all project structures and import patterns.
- Performance characteristics when managing large numbers of migrations or complex schema changes.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespeeweeclick |
| Maintenance | Actively maintained 155 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 229,713 / month, #9,125 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: peewee_migrate-1.15.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “peewee database migrations”
- peewee-migratePeewee Migrate provides a command-line and programmatic interface for…
- types-peeweeProvides type annotations for the peewee ORM library, enabling type…
- peeweePeewee is a lightweight ORM that maps Python classes to database…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also peewee · yoyo-migrations · Flask-Migrate · aerich · sqlite-migrate · django-test-migrations · sqlalchemy-migrate · Flask-Alembic · alembic · mongodb-migrations