Comment by me-vs-cat
1 day ago
This style looks pretty good to me:
pipeline = task(...)
pipeline |= task(...)
So does this style:
steps = [task(...), task(...)]
pipeline = functools.reduce(operator.or_, steps)
But it appears you can just change "task" to "Task" and then:
pipeline = pyper.Pipeline([Task(...), Task(...)])
No comments yet
Contribute on Hacker News ↗