Skip to main content

A ConfigParser bootstraping library

Project description

Metaconfig is a library for centralising your Python’s ConfigParser files. It is inspired by the logging module where it is increadibly easy to start writing code that depends on logging whilst deferring how log messages will be handled until later.

To get started with metaconfig just do:

import metaconfig conf = metaconfig.get_config(__name__)

conf will be a ConfigParser instance. You can create a centralised config file in ~/.metaconfig.conf to configure multiple applications and libraries. See the tests for examples.

Note: I am still experimenting with this. The API is liable to change without notice until version 0.2.

Project details


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