configuration manager for python
Project description
===============
Configuration Manager for Python
===============
Python Configuration
This library is designed for managing Configuration in Python projects and is inspired by
the Microsoft.Extensions.Configuration library in C#.
Installation
This library can be installed via pip:
.. code-block:: bash
pip install pyconfig
Usage
To use the configuration manager, you first need to create a ConfigurationBuilder
object and add one or more configuration sources.
For example, you can add a JSON file source and an environment variable source like this:
.. code-block:: python
from pyconfig import ConfigurationBuilder, IConfigurationBuilder
builder: IConfigurationBuilder = ConfigurationBuilder() \
.add_json_file('config.json') \
.add_environment_variables()
config = builder.build()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyconfig_extension-0.1.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c114f3999dea1c9c88e4b8de4fbcc7cec12b516d945bb45489cb6a46af9edfcd |
|
MD5 | 41113f69772791d042318ad49471d283 |
|
BLAKE2b-256 | f3cd72e9e111b69abce0b7809338a0fae69d39d1d19f2e8865ad83ec5fc1fa2a |