Python offers a variety of ways for packaging application inputs and configuration files. We'll look at writing files in Python notation because it's elegant and simple.
A number of projects allow the use of a class definition for providing configuration parameters. The use of a class hierarchy means that inheritance techniques can be used to simplify organization of parameters. The Flask package in particular, can do this. We looked at Flask in the recipe, Using the Flask framework for RESTful APIs, and a number of related recipes.
How can we represent configuration details in Python class notation?