Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

brizzbuzz/slitherway

Repository files navigation

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)

About

Migrations go hisssss 🐍

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages