Python – ConfigureParser

When you application is getting more and more sophisticated, you might need to have some configuration file which contains some arguments the user might want to customize later. If it is only about one or two arguments, users might be fine passing them to the command line arguments directly. However, if you have tens of arguments and you happen to be a python programmer. Definitely check out the built-in ConfigParser library.

configparser
Here is how the exported config file looks like:

exampleconfig

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s