14
Application Integration: Combination
The Python language is designed to permit extensibility. We can create sophisticated programs by combining a number of smaller components. In this chapter, we’ll look at ways to combine modules and scripts.
We’ll look at the complications that can arise from composite applications and the need to centralize some features, like command-line parsing. This will enable us to create uniform interfaces for a variety of closely related programs.
We’ll extend some of the concepts from Chapter 7 and Chapter 8, and apply the idea of the Command design pattern to Python programs. By encapsulating features in class definitions, we’ll find it easier to combine and extend programs.
In this chapter, we’ll look at the following recipes:
Combining two applications into one
Combining many applications using the Command design pattern
Managing arguments and configuration...