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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file slitherway-0.1.3.tar.gz.

File metadata

  • Download URL: slitherway-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.4.0-1077-azure

File hashes

Hashes for slitherway-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1edaf5f629b7b415282963a492033148f6e37ce8b4f1658bedc035f7fa9ca6d6
MD5 35ce149f131a4395ab6272916eaea413
BLAKE2b-256 f31d595890884b6a78da6080e8f2f2dfe3ecde583ffe4f5ca38a3e4daebdc9f4

See more details on using hashes here.

File details

Details for the file slitherway-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: slitherway-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.4.0-1077-azure

File hashes

Hashes for slitherway-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 571e39302c314a9fbeb6a2ea570c222c911596ccd4331e25afd05ffcf1fd1a32
MD5 bdc441533ed8668adf5f0ff4e08e5352
BLAKE2b-256 af7959cc8c6ae57befc6ba7698db59edad98af9116e47125d4e6e1e257405cbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page