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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1edaf5f629b7b415282963a492033148f6e37ce8b4f1658bedc035f7fa9ca6d6
|
|
| MD5 |
35ce149f131a4395ab6272916eaea413
|
|
| BLAKE2b-256 |
f31d595890884b6a78da6080e8f2f2dfe3ecde583ffe4f5ca38a3e4daebdc9f4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571e39302c314a9fbeb6a2ea570c222c911596ccd4331e25afd05ffcf1fd1a32
|
|
| MD5 |
bdc441533ed8668adf5f0ff4e08e5352
|
|
| BLAKE2b-256 |
af7959cc8c6ae57befc6ba7698db59edad98af9116e47125d4e6e1e257405cbb
|