Python offers a variety of ways that we can package application inputs and configuration files. We'll look at writing files in Python notation because it's elegant and simple.
A number of packages use assignment statements in a separate module for providing configuration parameters. The Flask project in particular, can do this. We looked at Flask in the Using the Flask framework for RESTful APIs recipe and a number of related recipes in Chapter 10, Web Services.
How can we represent configuration details in Python module notation?