Changelog
This changelog documents the release history of Pipeline Toolkit, including new features, improvements, behavior changes, and bug fixes.
Releases are listed in reverse chronological order, with the latest version at the top. Each entry summarizes the changes introduced in that release.
Changes are categorized using labels such as Added, Changed, Improved, Fixed, and Removed.
Documentation-only and metadata-only releases are explicitly identified.
0.9.2
- Documentation-only release: Added logo to README.
0.9.1
- Added
forward()utility for forwarding a value to a specific positional or keyword argument of a callable.
0.9.0
- Added
Checkpoint.valuesetter to set the published value. - Added
context_executor()utility for executing a context manager with a value and returning its result. - Changed
Pipeline.__call__()to run the pipeline synchronously, wait for execution to complete, reraise the most recent caught exception, and return the final result. - Changed
Pipeline.stop(),skip(),wait(), andrerun()to return early without blocking when called from within the pipeline's own worker thread.
0.8.1
- Added support for the
**operator to create multiple copies of astep.
0.8.0
- Changed the
Pipeline.run()error handler parameter name fromhandler_errortoerror_handler.
0.7.2
- Documentation-only release: Cleaned up the markup in all package's docstrings.
0.7.1
- Documentation-only release: Updated
chaindescription in package docstring.
0.7.0
- Added
flow()generator utility for executing callables sequentially and yielding intermediate results. - Added
repeat()generator utility for yielding repeated callable steps with preconfigured arguments. - Changed
chain()to accept callables instepsin addition to pipeline step tuples. - Changed
compose()to return a callable wrapper instead of executing functions immediately. The wrapper accepts an input value and applies the composed functions sequentially. - Removed the
defaultparameter fromcompose().
0.6.14
- Documentation-only release: Updated package docstring.
0.6.13
- Documentation-only release: Improved Stack example in Stack docstring.
0.6.12
- Documentation-only release: Improved the package example and description of
Pipelinein the package's docstring.
0.6.11
- Documentation and metadata only release: Some changes and improvements have been made to the docstring and package metadata.
0.6.10
- Improved
Pipelinestep string representation to include the_placeholder for the piped input value.
0.6.9
- Changed the meaning of
Pipeline.step:0now indicates that no active or retained step position exists, while a positive value identifies the current or retained step position. - Changed pipeline execution to preserve the previous result when the results stack is unavailable.
- Fixed
Group.clear()andGroup.reverse()not returning the group instance.
0.6.8
- Fixed a
Groupcontaining itself, which could create an invalid recursive group structure.
0.6.7
- Documentation-only release: Updated API reference link in the readme.
0.6.6
- Metadata-only release: Fixed project URLs in package metadata.
0.6.5
- Metadata-only release: Updated project URLs in package metadata.
0.6.4
- Added the
|operator to append multiple steps to a pipeline in place, equivalent toupdate(). - Changed
Group.add(),insert(),extend(),remove(),clear(), andreverse()to returnselfinstead ofNone, making these mutating operations chainable.
0.6.3
- Documentation-only release: Improved pipe's docstring.
0.6.2
- Documentation-only release: Improved docstring in
compose,step, andGroup.
0.6.1
- Documentation-only release: Edited the
Groupdescription at the package level.
0.6.0
- Added
Groupfor organizing, executing, and controlling multiplePipelineinstances or nested groups as a single unit. - Changed
compose()to accept an iterable of callables viastepsinstead of variadic positional arguments.
0.5.9
- Changed
Pipeline.add(),insert(),update(),remove(),discard(),clear(), andreverse()to return the current pipeline instance, allowing method chaining.
0.5.8
- Documentation-only release: Shortened the readme.
0.5.7
- Added equality comparison for
stepobjects. Steps can now be compared with other steps and their exported tuple representations.
0.5.6
- Added the
handler_errorparameter toPipeline.run()for handling errors raised during step execution. - Added an optional
timeoutparameter toPipeline.wait(). When the timeout expires, the method returns without stopping the running pipeline. - Added the
Pipeline.callsstack for tracking successfully executed steps. Failed and skipped steps are not recorded. - Added
Checkpoint, a synchronization utility for coordinating execution between threads. - Changed
pipefrom a callable class to a function-based wrapper while preserving its step-factory behavior and callable metadata.
0.5.5
- Added
Pipeline.stepsproperty for accessing a deep copy of the configured steps. - Added
chain()utility for synchronously executing pipeline steps sequentially. - Added
mut()utility for applying side effects directly to a value while preserving the original value as the return value. - Some internal changes.
0.5.4
- Documentation-only release: Changed the line breaks in the README.
0.5.3
- Documentation-only release: Updated
Pipeline.__contains__()and pipeline repetition documentation to match their current behavior.
0.5.2
- Changed
Pipeline.__mul__()so acountof0raisesValueErrorinstead of returning an emptyPipeline. - Changed
step.__call__()so omittingdefaultusesstep.default, while explicitly passingNoneusesNoneas the input value. - Extended
Pipeline.__contains__()to match callables by identity or valid step tuples by their full configuration. - Refactored
Pipelineandstepinternals, including private state attributes and shared step validation and execution helpers. - Simplified
stepandpiperepresentations to display the wrapped callable's name.
0.5.1
- Added
Pipeline.index()to return the one-based index of the first matching pipeline step. - Added
Pipeline.count()to return the number of occurrences of a pipeline step. - Improved
Pipeline.__str__()to include the pipeline'snameanddefaultvalue at the beginning of the representation. - Fixed
Pipeline.__str__()raising anAttributeErrorwhen the pipeline contains a callable object without a__name__attribute. - Fixed
Pipeline.nameaccepting empty strings. Thenameparameter and setter now raiseValueErrorwhen given an empty string.
0.5.0
- Changed
Pipeline.errorfrom a property to a method. Callerror()to re-raise the latest exception, orerror(reraise=False)to retrieve it without re-raising. - Renamed the
run_step()parameter fromsteptoindexto clarify that it refers to the one-based position of the pipeline step.
0.4.1
- Added
Pipeline.__init__()parameterrun_kwargsfor passing keyword arguments torun()whenrun_nowis enabled. - Added
nameparameter toPipelinefor assigning a name to worker threads. - Added
step.defaultfor configuring the default value used bystep.__mul__()andstep.__gt__(). - Improved
Pipeline.__repr__()to include the pipeline name and default value.
0.4.0
- Changed
Pipeline.__bool__()to return whether the pipeline contains configured steps instead of whether it is currently running. - Changed
Pipeline.init()parametersrun_nowandrun_argsto be keyword-only. - Added
Stack.put()andStack.peek()as compatibility aliases forStack.push()andStack.get(). - Added a
maxsizeproperty toStackfor getting and setting the maximum stack capacity. - Added support for
reversed(Stack), iterating from bottom to top. - Added
Pipeline.reverse()for in-place reversal of pipeline steps. - Added
reversed(Pipeline)support for iterating over pipeline steps in reverse order. - Added
Pipeline.update()for adding multiple pipeline steps at once with full validation before insertion. - Added support for appending a single step with the
+=operator. - Added support creating a new pipeline by concatenating steps with the
+operator. - Added support prepending pipeline steps with the
+operator. - Added support comparing pipeline configurations with the
==operator. - Added support repeating pipeline steps with the
*operator. - Added module-level docstrings describing the purpose of each module.
- Improved error messages for invalid pipeline steps to provide more specific validation details.
0.3.2
- Changed
Stackiteration order to iterate from top to bottom, yielding the most recently pushed item first. - Added
Pipeline.copy(),__copy__(), and__deepcopy__()to support shallow and deep copying of pipeline configuration without copying execution state. - First stable API release.
0.3.1
- Documentation-only release: Edited features list in the READMe.
0.3.0
- Removed
Pipeline.wait(reraise_exception)and exception re-raising fromPipeline.wait(). - Added iteration support to
Pipeline, allowing pipeline steps to be iterated in their configured order. - Added
Pipeline.resultproperty to retrieve the most recent pipeline result. - Added Pipeline.error property to raise the most recent exception raised by a pipeline step when accessed.
- Added
run_nowandrun_argsparameters toPipelineto support automatically starting the pipeline with customrun()arguments during initialization. - Added one-based indexed access, replacement, and removal of pipeline steps through
Pipeline.__getitem__(),Pipeline.__setitem__(), andPipeline.__delitem__(). - Added
Pipeline.remove()to remove the first matching step. - Added
Pipeline.discard()to remove the first matching step without raisingValueErrorwhen absent. - Added
Pipeline.execute()for synchronously executing an individual pipeline step without starting the worker thread or modifying execution results and errors. - Changed
Pipeline.run_step()signature to make thedefaultargument optional, defaulting toNone.
0.2.4
- Documentation-only release: Fixed heading level in the README.
0.2.3
- Added context manager support to
Pipelinefor automatically starting and stopping pipeline execution. - Added
step.export()for converting astepobject to the standard pipeline step format. - Added support for unpacking
stepobjects into pipeline step tuples.
0.2.2
- Improved
Pipeline.run()default handling with an internal sentinel, allowingNoneto be passed explicitly. - Added
reraise_exceptionsupport toPipeline.wait()for propagating worker exceptions to the calling thread. - Improved
Pipelinedocumentation for delay, error handling, and default values. - Added an initial cancellation window before the first pipeline step when
delayis enabled.
0.2.1
- Code cleanup.
0.2.0
- Added
compose()for sequential callable composition. - Added
pipeas a callable step factory. - Added
stepfor wrapping callables with preconfigured arguments. - Added configurable pipeline defaults.
- Fixed
Pipeline.insert()index validation for inserting at the end of the pipeline.
0.1.0
- First release version.