Skip to content

Releases: freddiev4/tinypipeline

tinypipeline 0.3.0: steps can be defined in non-linear order

21 Mar 03:13
e1fbb91
Compare
Choose a tag to compare

This release adds support for pipeline steps being run in non-linear order, specifically as a DAG. If you have four steps defined, you can return a dictionary of keys and list values, where each key is a step, and each list is the set of steps that depend on the key. Example:

# define the pipeline
@pipeline(
    name='test-pipeline', 
    version='0.0.1', 
    description='a test tinypipeline',
)
def pipe():
    # run the steps in the defined order of the graph
    return {
        step_one: [step_two, step_four],
        step_two: [step_three, step_four]
    }

What's Changed

Full Changelog: 0.2.0...0.3.0

tinypipeline 0.2.0: steps can be created via decorators

19 Mar 17:14
7e58ea6
Compare
Choose a tag to compare

This release adds support for pipeline steps as decorators and deprecates the usage of steps via functions. The old API for steps looks like:

def step_fn_one():
    print("Step function one")

step_one = step(
    callable=step_fn_one, 
    name='step_one', 
    version='0.0.1', 
    description='first step',
)

And the new API with decorators looks like:

@step(name='step_one', version='0.0.1', description='first step')
def step_one():
    print("Step function one")

This also deprecates the old API and will be removed in a later release.

What's Changed

Full Changelog: 0.1.0...0.2.0

Initial release

09 Feb 03:41
Compare
Choose a tag to compare

Initial release of the tinypipeline package to PyPI