Skip to main content

Flowkestra logo
A Lightweight Orchestrator for Machine Learning Experiments

Running machine learning experiments often involves a series of steps, such as data processing, training, and evaluation. Managing the dependencies and parameters for each step can become complex. Flowkestra simplifies this process by allowing you to define your entire workflow in a single configuration file.

This approach makes it easier to run, reproduce, and track your experiments, whether you are doing initial exploration on your local machine or preparing for more complex workflows.


Core Features

  • YAML-based Workflows: Define your experiment as a series of tasks in a simple config.yml file.
  • Sequential Task Execution: Runs your Python scripts in the order you define them.
  • MLflow Integration: Automatically logs your runs, parameters, and artifacts to an MLflow tracking server.
  • Local Execution: Currently supports running experiments on your local machine.

Getting Started

1. Installation

pip install flowkestra

(Note: The package is not yet published to PyPI. To install locally, use pip install .)

2. Create a Configuration File

Create a config.yml file to define your experiment. This file specifies the scripts to run, their inputs/outputs, and any parameters.

Here is an example for a local run:

# A descriptive name for your MLflow experiment.
mlflow_uri: "http://localhost:5000"
experiment_name: "example_experiment"

# Define your experiment instances. Each instance represents a distinct run
# with its own configuration.
instances:
  - mode: local # Currently, 'local' is the supported execution mode.
    # The working directory for the instance.
    workdir: "./test_data"
    # The target directory where training and virtual environment will be created.
    target_workdir: "./local_train"
    # Path to a requirements.txt file for this instance's environment.
    requirements: "requirements_local.txt"
    # Define pipelines (e.g., 'train', 'evaluate') with their scripts and arguments.
    pipelines:
      train:
        script: "mlflow_example.py" # The Python script to execute.
        args: # Optional arguments to pass to the script.
          [
            "--epoch", "30"
          ]

3. Run Your Experiment

Execute your experiment using the Flowkestra CLI, pointing it to your configuration file.

flowkestra -f config.yml

Flowkestra will then run your defined tasks in order.


Potential Use Cases

  • Organizing Experiments: Structure your ML code into reusable scripts and orchestrate them for different experiments.
  • Reproducible Runs: Keep your configuration, parameters, and scripts together, ensuring that you can easily rerun an experiment.
  • Basic ML Pipelines: Create simple, sequential pipelines for tasks like data preprocessing followed by model training.

Roadmap & Next Features

  • Remote Training: Support for executing tasks on remote machines via SSH.
  • Automated Parameter Tuning: Integrate with libraries to automate hyperparameter searches.
  • Expanded Cloud Support: Add direct support for cloud environments.

Notes

  • This project is in its early stages. Contributions and feedback are welcome.

Metadata

Release files for flowkestra 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flowkestra 0.1.0
File Size Uploaded Provenance Actions
flowkestra-0.1.0.tar.gz 12.5 kB Without provenance Details for flowkestra-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flowkestra 0.1.0
File Interpreter ABI Platform Actions
flowkestra-0.1.0-py3-none-any.whl Python 3 none any Details for flowkestra-0.1.0-py3-none-any.whl

Total release size: 25.2 kB

Release files / flowkestra-0.1.0.tar.gz

Download URL flowkestra-0.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ccae2db46584172909cfe8c7795a4bdef98e87c2feb3fc383f44df96ed3969
BLAKE2b-256 checksum
How to use checksums
f2e7d5902fbd44efcd49f3091c3eff259d0be2c5a7d5eadf60800cbbaf1f8fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / flowkestra-0.1.0-py3-none-any.whl

Download URL flowkestra-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57ae84f568066712bdaaff8cd478bb95748ca3cf8b1abecf50f9bcfb1ff4cb3f
BLAKE2b-256 checksum
How to use checksums
672d35df4ff57ea05fd90c5b116bfdcdc1f8d181f60f438fa868c6cdd57a0b16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for flowkestra 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page