Skip to main content

Manage changelog as migrations

Project description

https://badge.fury.io/py/exo-changelog.svg https://travis-ci.org/ExOLever/exo-changelog.svg?branch=master https://codecov.io/gh/ExOLever/exo-changelog/branch/master/graph/badge.svg

Manage changelog as migrations

Documentation

We have two commands, similar to Django Migrations, code based on it. One command creates an empty file ready for write our python code for the change (as a template file with some basic dependencies). We can include commands call or query using our django models.

We manage dependencies between changes at the same way that Django does. And also, we can manage conflicts through merging.

We only have two operations developed: RunPython and RunSQL (both of them, without parameters) When you want to apply for changes, please execute applychange with/without app_label. You will see messages similar to migrations.

Quickstart

Install exo-changelog:

pip install exo-changelog

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'exo_changelog.apps.ExoChangelogConfig',
    ...
)
Create the changelog table:

./manage.py migrate exo_changelog

Features

  • Create an empty change: ./manage.py makechange <app_name>

  • Execute changes: ./manage.py applychange <app_name>

Credits

Tools used in rendering this package:

History

0.1.0 (2018-08-28)

  • First release on PyPI.

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

exo-changelog-0.1.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

exo_changelog-0.1.1-py2.py3-none-any.whl (31.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file exo-changelog-0.1.1.tar.gz.

File metadata

  • Download URL: exo-changelog-0.1.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

File hashes

Hashes for exo-changelog-0.1.1.tar.gz
Algorithm Hash digest
SHA256 33512d3750a83e1c75568314fd6bf49f56d3ff4ed10e9073c47d7e7a03c1b440
MD5 bf86d426a3d46d6a08f36fc95c8332b5
BLAKE2b-256 91e87f2624a8d60962872a61ce743e0937284117258d7082c79d82523b381a37

See more details on using hashes here.

File details

Details for the file exo_changelog-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: exo_changelog-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2

File hashes

Hashes for exo_changelog-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cc1efe28ede7396739f9227c426340b62d64951c729505263faec42e65d30582
MD5 0bbe2a8760a03fffae6419fa5e140eff
BLAKE2b-256 a28787e8c5d10f5b41df8753ee98ca637cf37f724fa43ecdc9f481ad22eefa51

See more details on using hashes here.

Supported by

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