Python wrapper for the Flyway CLI
Project description
Slitherway
Slitherway is a lightweight python wrapper around the Flyway CLI.
It allows you to run migrations directly from your python applications and tests
In order to use, you must have the Flyway CLI installed on your machine!
Example
Using slitherway is simple
from slitherway.commands import migrate
from slitherway.models import FlywayCommandArgs
args = FlywayCommandArgs(
user=pg.POSTGRES_USER,
password=pg.POSTGRES_PASSWORD,
locations=["migrations"],
url=f"jdbc:postgresql://localhost:{pg.get_exposed_port(5432)}/{pg.POSTGRES_DB}",
)
migrate(args)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slitherway-0.1.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for slitherway-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571e39302c314a9fbeb6a2ea570c222c911596ccd4331e25afd05ffcf1fd1a32 |
|
MD5 | bdc441533ed8668adf5f0ff4e08e5352 |
|
BLAKE2b-256 | af7959cc8c6ae57befc6ba7698db59edad98af9116e47125d4e6e1e257405cbb |