Skip to main content

A lightweight, powerful, and flexible workflow engine that executes tasks defined in YAML configuration files

Project description

YAML Workflow

PyPI version Python versions CI codecov License: MIT

A lightweight, powerful, and flexible workflow engine that executes tasks defined in YAML configuration files. Create modular, reusable workflows by connecting tasks through YAML definitions, with support for parallel processing, batch operations, and state management.

Why yaml-workflow?

Most workflow tools (Airflow, Prefect, Dagster) are designed for distributed cloud infrastructure with complex server setups. yaml-workflow takes a different approach:

yaml-workflow Airflow / Prefect / Dagster
Setup pip install yaml-workflow Server, database, scheduler, workers
Configuration Plain YAML files Python DAGs + infrastructure config
Dependencies 3 (PyYAML, Jinja2, Click) 50+ packages, Docker, PostgreSQL
Use case Local automation, scripts, CI/CD, data pipelines Enterprise orchestration at scale
Learning curve Minutes Hours to days
State File-based, resumable Database-backed

Choose yaml-workflow when you need:

  • Simple task automation without infrastructure overhead
  • Reproducible pipelines defined in version-controlled YAML
  • Batch processing with parallel execution
  • State persistence and workflow resume after failures
  • A lightweight alternative to shell scripts with better error handling

Features

  • YAML-driven workflow definition with Jinja2 templating
  • Multiple task types: shell commands, Python functions, file operations, templates, batch processing
  • Parallel execution with configurable worker pools
  • State persistence and resume capability
  • Retry mechanisms with configurable strategies
  • Namespaced variables (args, env, steps, batch)
  • Flow control with custom step sequences and conditions
  • Extensible task system via @register_task decorator

Quick Start

# Install
pip install yaml-workflow

# Initialize example workflows
yaml-workflow init

# Run a workflow with parameters
yaml-workflow run workflows/hello_world.yaml name=Alice

Example workflow (hello_world.yaml):

name: Hello World
description: A simple greeting workflow

params:
  name:
    type: string
    default: World

steps:
  - name: create_greeting
    task: template
    inputs:
      template: "Hello, {{ args.name }}!"
      output_file: greeting.txt

  - name: show_greeting
    task: shell
    inputs:
      command: cat greeting.txt

More commands

# List available workflows
yaml-workflow list

# Validate a workflow
yaml-workflow validate workflows/hello_world.yaml

# Resume a failed workflow
yaml-workflow run workflows/hello_world.yaml --resume

Documentation

Full documentation is available at orieg.github.io/yaml-workflow.

Contributing

Contributions are welcome! See the Contributing Guide for development setup and guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

yaml_workflow-0.4.1.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

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

yaml_workflow-0.4.1-py3-none-any.whl (75.1 kB view details)

Uploaded Python 3

File details

Details for the file yaml_workflow-0.4.1.tar.gz.

File metadata

  • Download URL: yaml_workflow-0.4.1.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yaml_workflow-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fae8b2ded90b79ac5ff3dc306806954f761d4067e6313d666e6075fc95939afd
MD5 00e3b0f252e54cff953d1faf5840b989
BLAKE2b-256 9967deb55b1abd7c80d99965e4e3f7f8256e06081e486cee71a03d7a9a5dd10f

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaml_workflow-0.4.1.tar.gz:

Publisher: publish.yml on orieg/yaml-workflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yaml_workflow-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: yaml_workflow-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yaml_workflow-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 776a841f917d776fb14f9138566e2b2839b8a76774deea061b2cc01ef843386e
MD5 7ba7674430c4eab72ef3c1996975c4cf
BLAKE2b-256 d2c56fc507a158ceec2cc664893227a1bf6451b6fd2e0290206da1b0ab332693

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaml_workflow-0.4.1-py3-none-any.whl:

Publisher: publish.yml on orieg/yaml-workflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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