Releases: freddiev4/tinypipeline
Releases · freddiev4/tinypipeline
tinypipeline 0.3.0: steps can be defined in non-linear order
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
- Add support for nonlinear pipelines by @freddiev4 in #3
Full Changelog: 0.2.0...0.3.0
tinypipeline 0.2.0: steps can be created via decorators
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
- Add
step
decorator usage by @freddiev4 in #1 - Bump version for
0.2.0
release by @freddiev4 in #2
Full Changelog: 0.1.0...0.2.0
Initial release
Initial release of the tinypipeline
package to PyPI