FastFlows is a FastAPI server & command line tool to comunicate with Prefect 2.0 as a Workflow manager to deploy, run, track flows and more.
Project description
Run FastFlow server
FastFlows is a FastAPI server & command line tool to comunicate with Prefect 2.0 as a Workflow manager to deploy, run, track flows and more.
To start work with FastFlows you should define at least 2 environment variables:
# Prefect API Server address
PREFECT_URI=http://localhost:4200
# Path to folder with flows
FLOWS_HOME=flows
If you want to define variables with env prefix, for example, like 'LOCAL_PREFECT_URI' or 'DEV_PREFECT_URI' you can use environment variable 'ENV_NAME'
If Fastflow will see 'ENV_NAME' variable in environment - it will search for variables with prefix defined in this ENV_NAME, for example:
if ENV_NAME = 'LOCAL'
Fastflows will read variables like LOCAL_PREFECT_URI and LOCAL_FLOWS_HOME,
if ENV_NAME = 'dev', then fastflow will expect variables like 'dev_PREFECT_URI' and 'dev_FLOWS_HOME'
Build FastFlows
To build stand alone image:
docker build . -f docker/Dockerfile -t fastflows
Run Prefect witn DB in Docker-Compose
docker-compose -f ./docker/docker-compose.yml up --build
To enter UI:
# if you will try to use 0.0.0.0 you will not see any data because of CORS issues
http://localhost:4200/flows
Run cli
fastflows --help
Flows Deployment
Auto deployment
Deployment of Flows can be done by FastFlows automatically: if there is a new flow or changes in FLOWS_HOME directory - FastFlow create new deployment. To disable auto deployment set env variable to 0
FASTFLOWS_AUTO_DEPLOYMENT = 0
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
Built Distribution
Hashes for fastflows-0.1.0.dev1657623062.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11920c0b061dff7f76cf0d28badee3b66504bee6e549f412a15985f82592a485 |
|
MD5 | 78d6c9513d9850e9ffcc95a105890b26 |
|
BLAKE2b-256 | b6bb3079e4dc7f4c60bad2ba299352ded8064f4add0a74dfdddd3e66d17a505c |
Hashes for fastflows-0.1.0.dev1657623062-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6e207f0aea94cacb977f98ee66ffc58ef20107e4f823dc140b462650e892dc2 |
|
MD5 | 3af76535850d1a546796e5e141805914 |
|
BLAKE2b-256 | 7a8e03fcc2c250c2c282583069f26a2a6c2894358737d3512808f812f212f695 |