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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page