In the Designing scripts for composition recipe, we looked at a simple application that creates a collection of statistics by simulating a process. In the Using logging for control and audit output recipe, we looked at an application that summarizes a collection of statistics. In this recipe, we'll combine those two separate applications to create a single, composite application that both creates and summarizes the statistical data.
There are several common approaches to combining these two applications:
- A shell script can run the simulator and then run the analyzer
- A Python program can stand in for the shell script and use the runpy module to run each program
- We can build a composite application from the essential features of each application
In the Designing scripts for composition recipe, we examined three aspects of an application...