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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyconfig_extension-0.0.1.tar.gz.
File metadata
- Download URL: pyconfig_extension-0.0.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e28a8e07e14e2e86a0f41076f58367bb7323bfbcf8fe4fbf24e61b6e58dd368
|
|
| MD5 |
a7ee2d23740de67ac68dad252e1ffae6
|
|
| BLAKE2b-256 |
ae8c19645c7137be3fcd17246834aa84ab0269452c33e9eb4504e5395f589bb2
|
File details
Details for the file pyconfig_extension-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyconfig_extension-0.0.1-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1242e5dc15524b40f3bfaadff14acf22e6e0d0a527a5f122c6bfa352b72c3a
|
|
| MD5 |
f0a6cd2f075d98e295d3f07949b17a86
|
|
| BLAKE2b-256 |
6d6a6174a668bab8f4e202204bbac1887d9aceb0e971e9b2982ba5199638b975
|