Skip to main content

Define routines as structured algorithmic workflows

Reason this release was yanked:

No version record on GitHub repo

Project description

routix

Routix is a lightweight Python toolkit for designing and executing structured algorithmic workflows.

It provides:

  • Subroutine-based execution control (SubroutineController)
  • Structured flow validation (SubroutineFlowValidator)
  • Dot-accessible configuration trees (DynamicDataObject)
  • Logging with routine-context traceability
  • Experiment summary and timing support
  • Abstract base classes for runners in src/routix/runner/ for extensible workflow execution patterns

Subroutine Flow Data Format

Routix executes algorithmic workflows based on a structured and validated subroutine flow. Each step in the flow is represented by a dictionary with clearly defined keys, enabling modular orchestration, logging, and reproducibility.

# my_flow.yaml
- method: initialize
- method: repeat
  params:
    n_repeats: 3
    routine_data:
      - method: sample_method
        params:
          value: 42

For more details, refer to subroutine_flow_data.md.

Abstract base classes for runners

Classes in routix.runner are extensible abstract base classes for implementing custom workflow runners. These classes provide a foundation for building repeatable, modular, and testable execution patterns for algorithmic experiments.

  • SingleInstanceRunner: An abstract base class for running a single problem instance. It provides a template for implementing the logic for one experiment, including setup, execution, and result collection.
    • Typical usage: custom solvers, single-run experiments, or as a building block for higher-level runners.
  • MultiInstanceRunner: An abstract base class for running multiple problem instances. It defines the interface and core logic for iterating over multiple instances, managing results, and integrating with experiment summaries.
    • Typical usage: batch experiments, benchmarking, or automated evaluation over a dataset.
  • MultiInstanceConcurrentRunner: An abstract base class for running multiple problem instances concurrently (in parallel). It extends the multi-instance execution pattern to support concurrent processing, enabling faster experimentation and efficient use of computational resources.
    • Typical usage: parallel batch experiments, multi-core benchmarking, or scenarios where multiple instances should be solved simultaneously.

Note: InstanceSetRunner is a deprecated name. Please use MultiInstanceRunner instead.

Both classes are designed to be subclassed and extended. You can implement your own runner by inheriting from these base classes and overriding the required methods to fit your workflow.

For implementation details, see the source files in src/routix/runner/.

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

routix-0.0.10.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

routix-0.0.10-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file routix-0.0.10.tar.gz.

File metadata

  • Download URL: routix-0.0.10.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for routix-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a108886f6433e899413dbb47d0ada2adf9a7df6abf1d19445c8928d6b8b14c67
MD5 5d70fa8c90b88a940527c04b32cb2f3c
BLAKE2b-256 b4fd4b527bd11e055ab3570f2f7134cd0c568627da199b23927690b5c6dc2a22

See more details on using hashes here.

File details

Details for the file routix-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: routix-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for routix-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 51d2b1f004e4dc077055d1b5dbf182aa76e4e2062f00a99903518b5429add4fc
MD5 360d7716b33d31858bdef9f6dbb05dd4
BLAKE2b-256 b8e0818aa91270d5053bc60fc6de95d695a97c8561cb0769aba981e944456328

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