Chapter 15: Implementing a Case Study

In this chapter, we will work on implementing a case study by applying the metaprogramming concepts that we have learned so far. For this case study, we will be using the Automobile. (1987). UCI Machine Learning Repository dataset.

In this chapter, we will be looking at the following main topics:

  • Explaining the case study
  • Defining base classes
  • Developing a code generator library
  • Generating code
  • Designing an execution framework

By the end of this chapter, you should have an understanding of how to use the existing methods of the ast library in Python to enable your application to generate its own code.

Technical requirements

The code examples shared in this chapter are available on GitHub at: ...

Get Metaprogramming with Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.