jutils 0.4.0 (The Pipeline Update)
Description
This release of jutils enables users to create pipelines constructed from functions and easily pass single or multiple pieces of data through the entire pipeline. This is enabled by the respective new classes:
Changelog
InstructionPipeline()
jutils defines an instruction pipeline as a series of functions connected in series so users can pass a single piece of data through it and get a result after a series of functional operations has been applied. You can construct an instruction pipeline by passing the functions at instantiation, or by using the build-in add()
function. You can also list()
the pipeline functions and remove()
functions if required.
DataPipeline()
The data pipeline extends the functionality of the instruction pipeline by allowing the passage of multiple pieces of data. The returned value is a list of all data passed after the series of operations has been equally applied to each. You can construct an instruction pipeline by passing the functions at instantiation, or by using the build-in add()
function. You can also list()
the pipeline functions and remove()
functions if required.