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.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6accf2dec9f387f07bfba18e231298f5ca25f8cb0fb8ec2ea6ee3d09eac60a30 |
|
MD5 | e2525a46e1b2f51e2c713f5a3089c942 |
|
BLAKE2b-256 | 32bada212801d35097037099ffecf375fafdd71a058d385881a3d76f799d5571 |