Skip to main content

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

Installation

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

$ pip install git+https://github.com/Proteus-tech/tormor.git@pytest_asyncpg_dryrun

Instruction

$ 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

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

Dev

Requirements

  • flit
  • PostgreSQL
pip install flit
flit install
./runtests

Publish to PyPI

flit publish

Release files for tormor 2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tormor 2.5
File Size Uploaded
tormor-2.5.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tormor 2.5
File Interpreter ABI Platform
tormor-2.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 36.4 kB

Release files / tormor-2.5.tar.gz

Download URL tormor-2.5.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
18f02ca5f59b5f046cfca367bee6967edee272e8d70d9eb94a4c4c2ad99432ff
BLAKE2b-256 checksum
How to use checksums
3b56df669a86bf7b212832a843cb1d990f8016c7a90faf2962d8938711f82f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / tormor-2.5-py2.py3-none-any.whl

Download URL tormor-2.5-py2.py3-none-any.whl
Size 26.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
374d68f8c33d7dc3b8d36863c88ea4e04fa101cbfa876cf143b6b31c8dd8eacc
BLAKE2b-256 checksum
How to use checksums
6371af236d90be0e805dc246ab4d80e08662e754c54cb2ff491467ce10601899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release history Release notifications | RSS feed

This release

2.5 This release

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.2

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page