Skip to main content

tketool.pipeline

Small stage-based processing pipelines with ordered decorators, optional parallel item processing, and local buffering.

pip install tketool.pipeline
from enum import Enum

from tketool.pipeline import Pipeline, invoke_all


class Stage(Enum):
    PREPARE = "prepare"
    RUN = "run"


class Steps:
    @invoke_all(Stage.PREPARE.value, priority=10)
    def prepare(self, board):
        board.current_data = {"ready": True}


pipeline = Pipeline(Stage, acts=[Steps()])
result = pipeline()

The retired tketool.injections path is not shipped.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tketool_pipeline-1.3.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

tketool_pipeline-1.3.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file tketool_pipeline-1.3.5.tar.gz.

File metadata

  • Download URL: tketool_pipeline-1.3.5.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.4

File hashes

Hashes for tketool_pipeline-1.3.5.tar.gz
Algorithm Hash digest
SHA256 77d647ea1e94128b86e778ce295829821f7d60505aa1d01028b9d62ca45251cb
MD5 cff3bbfe8d0c2cb52a9d7ee55696fdd5
BLAKE2b-256 8ec44aed691a8800241ff541d5defbd763157e553cb3a1a3fd21f9d728a83d2f

See more details on using hashes here.

File details

Details for the file tketool_pipeline-1.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for tketool_pipeline-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 02141f9572496450f2326ac33ceae489fecd4e4a65188cb5c1f08efb6d85c625
MD5 1a0b3fe1f8198ce7229d58b75db32f80
BLAKE2b-256 8ece5eadfade0801afaa73de85a47d899486179297ffafade3c9ed9d710c7da8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.5 This release

2 files

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