Skip to content

0.5.0

Compare
Choose a tag to compare
@pwwang pwwang released this 03 Mar 16:57
· 124 commits to master since this release
6c7520b
  • ➖ Remove more-itertools

  • ✨ Add ProcGroup to manage groups of processes.

    from pipen import Proc, ProcGroup
    
    class MyGroup(ProcGroup):
    
        @ProcGroup.add_proc
        def my_proc(self):
            class MyProc(Proc):
                ...
            return MyProc
    
        @ProcGroup.add_proc
        def my_proc2(self):
            class MyProc2(Proc):
                requires = self.my_proc
                ...
            return MyProc2
    
    pg = MyGroup()
    # Run as a pipeline
    pg.as_pipen().set_data(...).run()
    
    # Integrate into a pipeline
    <proc_of_a_pipeline>.requires = pg.my_proc2

What's Changed

Full Changelog: 0.4.6...0.5.0