Skip to main content

Python CLI tool for managing and executing hand-written PostgreSQL migrations

Project description

Deployed to PyPI Documentation Status Continuous Integration Status Coverage Status MIT License Contributor Covenant

Overview

Maybe you’re looking for a tool to take care of Database migrations in your project. For Django projects, that tool used to be South and then it became Django itself.

But maybe you’re looking for a tool that just focuses on running existing SQL migrations and keeping track of what was applied. Your tool of choice would not generate those migrations, because you prefer your migrations to be manually written in SQL. Then your tool would be django-north.

But maybe you’re not using Django. You would like a standalone migration tool. You’re looking for Septentrion. Congratulations, you’ve found it.

Septentrion supports PostgreSQL 9.6+ and Python 3.6+.

Very quick start

  • Step 1: Create a folder for the version, and add some migration files.
migrations/
└──  1.0
    ├── 1.0-0-version-dml.sql
    ├── 1.0-author-1-ddl.sql
    └──  1.0-author-2-dml.sql
  • Step 2: Run septentrion
$ septentrion --target-version 1.0 migrate
  • Step 3: That’s it.

We’re currently working on this tool, and it’s been used internally since 2018, but for now, if you want to use it without a direct access to the people who wrote it, you’re going to have a lot of questions. We expect a proper documentation to be ready by mid-2020. Please feel free to contact us meanwhile.

Where to go from here

The complete docs is probably the best place to learn about the project.

You can check the quickstart guide to start running your first migrations.

If you encounter a bug, or want to get in touch, you’re always welcome to open a ticket.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for septentrion, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size septentrion-0.2.0-py3-none-any.whl (21.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size septentrion-0.2.0.tar.gz (16.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page