Skip to main content

Database migration helper

Project description

Tormor Command Line Tool

PyPI version CircleCI Coverage Status

Tormor is a command line tool for migrating database. To use Tormor, please first ensure these requirements:

  • Postgresql has been installed
  • Postgresql can be accessed using command :
    $ psql
  • SCHEMA_PATH has been specified


Tormor requires Python 3.5 or later to run. Tormor can be installed using pip:

$ pip install git+


$ tormor [opts] command [args]

For more information, please use command:

$ tormor --help

Enabling Modules

enable-modules command receives module name as a parameter to be enabled and later migrated using migrate command.

$ tormor enable-modules module-to-be-migrated


migrate command executes sql files under the enabled modules. To start migration, use the following command:

$ tormor migrate

To simply output migration sql queries without executing them, use the following command.

$ tormor migrate --dry-run

Run a Script File

include command takes filename as a parameter allows tormor commands to be run in a script, each line at a time.

$ tormor include filename

Execute SQL File

sql command takes filename as a parameter and load and execute the query inside it.

$ tormor sql filename



  • flit
  • PostgreSQL
pip install flit
flit install

Publish to PyPI

flit publish

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 tormor, version 2.3
Filename, size File type Python version Upload date Hashes
Filename, size tormor-2.3-py2.py3-none-any.whl (25.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size tormor-2.3.tar.gz (10.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page