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 ...
Get Modern Python Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.