Skip to main content

Flexible reading and writing of namespaced configuration options

Project description

  1. Mozilla

The modules typically used for configuration in Python applications have inconsistent APIs. You cannot simply swap getopt for argparse and neither of them will do anything at all with ini or json configuration files. Likewise, ConfigParse and json do nothing for the command line. Additionally, if a given configuration system works with some configuration file of choice, it likely supports only strings rather than complex types like classes and functions.

configman is a layer above all these, allowing a high degree of flexibility for an application’s source of configuration information. Rather than reimplementing command line and config file modules, configman exploits the existing modules, gluing them together to form one unified system. For example, it is possible with configman to define an application’s configuration in json and then automatically have ini file and command line switch support. Further, configman enables configuration values to be dynamically loaded Python objects, functions, classes or modules. These dynamically loaded values can, in turn, pull in more configuration definitions and more dynamic loading. configman provides tools to implement dependency injection through configuration files and the command line.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

configman-1.0.1.tar.gz (187.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page