Pipeline program
Pipeline will be a text-mode program that can be configured to run a sequence of other programs and feed data from each program into the next. In each section, we'll apply what we talked about developing Pipeline further.
So far, what we talked about in this chapter is how to make the program able to be run from python -m, but in the previous chapters, we saw how to create a virtual environment to work in, how to create a package, and how to layout the code in the packages modules for readability.
So, let's put those lessons to use.
Create a folder within the virtual environment to be the package and call it pipeline. Inside the package folder, place an __init__.py file, which can be empty, and a __main__.py file:
For now, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access