Program Configuration in Python

Posted by Scott_Ruecker on Nov 19, 2014 1:39 PM EDT
Dr. Dobb's Open Source Articles; By Gigi Sayfan
Mail this story
Print this story

Despite numerous options for passing config data to a program, there is still a need for a utility to handle complex hierarchical configuration and locate config files on distributed system. Here is one. Computer programs are made of code. However, most nontrivial programs can be configured to behave in different ways without changing the code. There are many ways of configuring a program such as: command-line arguments, environment variables, configuration files, reading configuration information from a database, and reading configuration data over the network. Each form of configuration is appropriate for certain situations. Many programs combine several forms of configuration. In this article, I explore the spectrum of configuration options for single programs, distributed processes (same program running on multiple cores and/or machines), and distributed systems (a collection of different programs running on multiple cores and/or machines). I will also present a Python package that can help with managing configuration when dealing with systems composed of multiple configurable components.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: Python

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.