Skip to main content

Execute PostGreSQL migrations

Project description

Septentrion

Build Status codecov

A CLI tool to apply PostgreSQL migrations to a database.

Overview

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 you're looking for a tool that just focuses on running existing SQL migrations and keeping track of what was applied, through time. That's django-north.

You're looking for that, but without Django. You're looking for septentrion. Congratulations, you've found it.

Requirements

This project would only work for PostgreSQL databases 9.6+. We aim to be compatible with Python 2.7+ and Python 3+ (but Python 2 will not stay for long).

Install

At the moment, there are no proper releases on PyPI. As a consequence, you'll have to clone this repository locally and install it via:

pip install git+https://github.com/peopledoc/septentrion.git

What does it do?

Project is still pre-alpha, moving fast and breaking things. Best way to know what it does, is to call:

septentrion --help

Launch a postgres DB with Docker

$ docker run --rm -it -p 5432:5432 -e POSTGRES_PASSWORD=password postgres

Licensing

septentrion is published under the terms of the Apache Software License.

Testing

Nothing is done so far, but we have some guidelines we'd like to follow, here

Running the tests

You must have access to a postgres database, then:

PGPASSWORD=password PGHOST=127.0.0.1 PGUSER=postgres PGPORT=5432 tox

Project details


Download files

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

Source Distribution

septentrion-0.1.3.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

septentrion-0.1.3-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file septentrion-0.1.3.tar.gz.

File metadata

  • Download URL: septentrion-0.1.3.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for septentrion-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f2b12e498593646d6971de02f3213c7d0534774976f4c0addf625b9c1eb3a4b4
MD5 55ffb4fa5c4a4d34d13b18b18670dbba
BLAKE2b-256 7f42a47281bd9c068c42cbaa22915ba675c6f365d447908a248e212887cf1945

See more details on using hashes here.

File details

Details for the file septentrion-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: septentrion-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for septentrion-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17f91401e768cdbfaaf92ff4032616f04b9dd3c251d31f2298aa4785202c3881
MD5 bad192d50057bff09a20944cad6714f3
BLAKE2b-256 5cf5cb6296aad8bdf65a98885a8b8ba256c7847fd7336e758c03d030a9dc454d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page