Skip to main content

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.

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.0.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file config-manager-1.0.1.tar.gz.

File metadata

File hashes

Hashes for config-manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2e67a8ddc74ccf0070f9d7eb33c376260ba5fa08ec00c9ce90695bc6404f604d
MD5 8e85f4efffca5f6c868491ede00e21c9
BLAKE2b-256 2d98d9dbb361c99223438b1507cf12800930468d02c6a15c0b164fe6e3eecaa0

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page