Skip to main content

A workflow automation tool

Project description

Buffalo

Buffalo is a powerful workflow management tool designed for quickly creating and managing project workflows. It provides a simple and flexible way to define, track, and manage tasks and workflows within projects.

Key Features

  • 🚀 Quick project creation and management
  • 📋 YAML-based workflow definition
  • 🔄 Work status tracking and management
  • 📁 Project template support
  • 🔍 Flexible work retrieval mechanism
  • 💾 Automatic project state saving and loading
  • 📊 Ordered workflow execution with index-based sorting

Installation

pip install buffalo-workflow

Quick Start

  1. Create a workflow template file (e.g., workflow_template.yml):
workflow:
  works:
    - name: "task_1"
      status: not_started
      comment: "First task"
      index: 1
    - name: "task_2"
      status: not_started
      comment: "Second task"
      index: 2

Note: Each work in the workflow must have an index field, which is used to determine the execution order. Works will be automatically sorted by their index values, regardless of their order in the template file.

  1. Use Buffalo to create and manage projects:
from pathlib import Path
from buffalo import Buffalo

# Initialize Buffalo
base_dir = Path("./projects")
template_path = Path("./workflow_template.yml")
buffalo = Buffalo(base_dir, template_path)

# Create a new project
project = buffalo.create_project("my_project")

# Get a pending task
project, work = buffalo.get_a_job("task_1")

# Update task status
buffalo.update_work_status(project.folder_name, work, "in_progress")

Project Structure

my_project/
├── buffalo.yml          # Project configuration file
└── workflow_description.yml  # Workflow description file

Requirements

  • Python >= 3.8
  • PyYAML >= 5.1

License

MIT License

Contributing

Issues and Pull Requests are welcome!

Links

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

buffalo_workflow-0.1.7.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

buffalo_workflow-0.1.7-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file buffalo_workflow-0.1.7.tar.gz.

File metadata

  • Download URL: buffalo_workflow-0.1.7.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for buffalo_workflow-0.1.7.tar.gz
Algorithm Hash digest
SHA256 45ecfc43c1971af69064f3a604804f0bbb268b19cc2e69bafa5398160e6bad7b
MD5 2f394e65a88e874e3c4bf242e4cdd06c
BLAKE2b-256 bf33aaa6ba74ef859b47acf9611196d64d4c9ddffdef6e8f2d5661455021dd07

See more details on using hashes here.

File details

Details for the file buffalo_workflow-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for buffalo_workflow-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a84c4a16ad21400e0b809f3faf248b43e0907159b492d7fed48b0ca2d24fa26b
MD5 31b78face396064ce8cbc28e108e79d5
BLAKE2b-256 71ec54aac47563cd9a3a54cfdaaa976c746a24903740d137f6486b2f6796d092

See more details on using hashes here.

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