Skip to content

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.value setter 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(), and rerun() 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 a step.

0.8.0

  • Changed the Pipeline.run() error handler parameter name from handler_error to error_handler.

0.7.2

  • Documentation-only release: Cleaned up the markup in all package's docstrings.

0.7.1

  • Documentation-only release: Updated chain description 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 in steps in 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 default parameter from compose().

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 Pipeline in 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 Pipeline step string representation to include the _ placeholder for the piped input value.

0.6.9

  • Changed the meaning of Pipeline.step: 0 now 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() and Group.reverse() not returning the group instance.

0.6.8

  • Fixed a Group containing 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 to update().
  • Changed Group.add(), insert(), extend(), remove(), clear(), and reverse() to return self instead of None, 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, and Group.

0.6.1

  • Documentation-only release: Edited the Group description at the package level.

0.6.0

  • Added Group for organizing, executing, and controlling multiple Pipeline instances or nested groups as a single unit.
  • Changed compose() to accept an iterable of callables via steps instead of variadic positional arguments.

0.5.9

  • Changed Pipeline.add(), insert(), update(), remove(), discard(), clear(), and reverse() 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 step objects. Steps can now be compared with other steps and their exported tuple representations.

0.5.6

  • Added the handler_error parameter to Pipeline.run() for handling errors raised during step execution.
  • Added an optional timeout parameter to Pipeline.wait(). When the timeout expires, the method returns without stopping the running pipeline.
  • Added the Pipeline.calls stack for tracking successfully executed steps. Failed and skipped steps are not recorded.
  • Added Checkpoint, a synchronization utility for coordinating execution between threads.
  • Changed pipe from a callable class to a function-based wrapper while preserving its step-factory behavior and callable metadata.

0.5.5

  • Added Pipeline.steps property 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 a count of 0 raises ValueError instead of returning an empty Pipeline.
  • Changed step.__call__() so omitting default uses step.default, while explicitly passing None uses None as the input value.
  • Extended Pipeline.__contains__() to match callables by identity or valid step tuples by their full configuration.
  • Refactored Pipeline and step internals, including private state attributes and shared step validation and execution helpers.
  • Simplified step and pipe representations 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's name and default value at the beginning of the representation.
  • Fixed Pipeline.__str__() raising an AttributeError when the pipeline contains a callable object without a __name__ attribute.
  • Fixed Pipeline.name accepting empty strings. The name parameter and setter now raise ValueError when given an empty string.

0.5.0

  • Changed Pipeline.error from a property to a method. Call error() to re-raise the latest exception, or error(reraise=False) to retrieve it without re-raising.
  • Renamed the run_step() parameter from step to index to clarify that it refers to the one-based position of the pipeline step.

0.4.1

  • Added Pipeline.__init__() parameter run_kwargs for passing keyword arguments to run() when run_now is enabled.
  • Added name parameter to Pipeline for assigning a name to worker threads.
  • Added step.default for configuring the default value used by step.__mul__() and step.__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() parameters run_now and run_args to be keyword-only.
  • Added Stack.put() and Stack.peek() as compatibility aliases for Stack.push() and Stack.get().
  • Added a maxsize property to Stack for 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 Stack iteration 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 from Pipeline.wait().
  • Added iteration support to Pipeline, allowing pipeline steps to be iterated in their configured order.
  • Added Pipeline.result property 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_now and run_args parameters to Pipeline to support automatically starting the pipeline with custom run() arguments during initialization.
  • Added one-based indexed access, replacement, and removal of pipeline steps through Pipeline.__getitem__(), Pipeline.__setitem__(), and Pipeline.__delitem__().
  • Added Pipeline.remove() to remove the first matching step.
  • Added Pipeline.discard() to remove the first matching step without raising ValueError when 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 the default argument optional, defaulting to None.

0.2.4

  • Documentation-only release: Fixed heading level in the README.

0.2.3

  • Added context manager support to Pipeline for automatically starting and stopping pipeline execution.
  • Added step.export() for converting a step object to the standard pipeline step format.
  • Added support for unpacking step objects into pipeline step tuples.

0.2.2

  • Improved Pipeline.run() default handling with an internal sentinel, allowing None to be passed explicitly.
  • Added reraise_exception support to Pipeline.wait() for propagating worker exceptions to the calling thread.
  • Improved Pipeline documentation for delay, error handling, and default values.
  • Added an initial cancellation window before the first pipeline step when delay is enabled.

0.2.1

  • Code cleanup.

0.2.0

  • Added compose() for sequential callable composition.
  • Added pipe as a callable step factory.
  • Added step for 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.