Skip to main content

Python wrapper for the Flyway CLI

Project description

Slitherway

PyPi version

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


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)

Uploaded Source

Built Distribution

slitherway-0.1.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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