Metadata-Version: 2.1
Name: slitherway
Version: 0.1.3
Summary: Python wrapper for the Flyway CLI
Home-page: https://github.com/unredundant/slitherway
License: MIT
Keywords: migrations,flyway
Author: Ryan Brink
Author-email: rbweb@pm.me
Requires-Python: >=3.7,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: pydantic (>=1.9.0,<2.0.0)
Project-URL: Repository, https://github.com/unredundant/slitherway
Description-Content-Type: text/markdown

# Slitherway

[![PyPi version](https://badgen.net/pypi/v/slitherway/)](https://pypi.org/project/slitherway/)

Slitherway is a lightweight python wrapper around the [Flyway](https://flywaydb.org/) 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

```py
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)
```

