Skip to main content

A basic configuration reader and manager for python projects

Project description

Build Status

Travis-CI build status Code Coverage Code Health

Project details

License Pypi Version

Description

The config-manager package is a basic configuration reader and manager. It reads the configuration data from an external YAML or JSON file and it injects this data into the application that is called from. It’s currently tested on Python 2.7.

Installation

pip install config-manager

or

download the latest release and run

python setup.py install

Usage

#configs.yaml contains the configuration data

from config_manager import ConfigManager
confman = ConfigManager(config_file_path='/path/to/configs.yaml', defaults={'maintenance':'False'}, required=['maintenance'])
maintenance = confman['maintenance']

License

This project is licensed under the MIT license.

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

config-manager-1.1.2.tar.gz (5.8 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