configparser — Work with Configuration Files — PyMOTW 3
Originally posted · 1 min read
Use the configparser module to manage user-editable configuration files for an application. The contents of the configuration files can be organized into groups and several option value types are supported, including integers, floating point values, and Booleans. Option values can be combined using Python formatting strings, to build longer values such as URLs from shorter values like host names and port numbers.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.