Skip to content

This is some simple illustrative code for Python's ConfigParser module, written as I was trying to figure out how to store more complex data structures in config files.

Notifications You must be signed in to change notification settings

cacois/python-configparser-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python ConfigParser Example

This is some simple illustrative code for Python's ConfigParser module, written as I was trying to figure out how to store more complex data structures in config files.

In addition to the normal stuff, such as getting a single variable/value from a config file, this code also illustrates how to configure and access complex data structures from your config files, such as

  • dicts
  • lists
  • nested data structures (e.g. lists within a dict)

About

This is some simple illustrative code for Python's ConfigParser module, written as I was trying to figure out how to store more complex data structures in config files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages