https://github.com/afxentios/config-manager
A basic configuration reader and manager for python projects
https://github.com/afxentios/config-manager
config-management configuration json python yaml
Last synced: 3 months ago
JSON representation
A basic configuration reader and manager for python projects
- Host: GitHub
- URL: https://github.com/afxentios/config-manager
- Owner: afxentios
- License: mit
- Created: 2016-12-23T13:06:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T15:12:16.000Z (almost 7 years ago)
- Last Synced: 2025-06-02T04:38:56.796Z (4 months ago)
- Topics: config-management, configuration, json, python, yaml
- Language: Python
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
config-manager: Read and manage configuration data for your application
=======================================================================Build Status
------------|travis status| |coverage| |health|
Project details
---------------|license| |pypi|
.. |travis status| image:: https://travis-ci.org/afxentios/config-manager.svg?branch=master
:target: https://travis-ci.org/afxentios/config-manager
:alt: Travis-CI build status
.. |coverage| image:: https://coveralls.io/repos/github/afxentios/config-manager/badge.svg
:target: https://coveralls.io/github/afxentios/config-manager
:alt: Code Coverage
.. |health| image:: https://landscape.io/github/afxentios/config-manager/master/landscape.svg?style=flat
:target: https://landscape.io/github/afxentios/config-manager/master
:alt: Code Health
.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://github.com/afxentios/config-manager/blob/master/LICENSE.txt
:alt: License
.. |pypi| image:: https://badge.fury.io/py/config-manager.svg
:target: https://badge.fury.io/py/config-manager
:alt: Pypi VersionDescription
-----------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.- `Issue tracker`_
- `Changelog`_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.
.. _Changelog: https://github.com/afxentios/config-manager/blob/master/CHANGELOG.rst
.. _Issue tracker: https://github.com/afxentios/config-manager/issues
.. _latest release: https://github.com/afxentios/config-manager/releases