Mergeable configuration
Project description
m-conf
m-conf project probides a ini-like configuration parser intended to generate a final configuration dict resulting from merging multiple ini-like configuration files.
License
m-conf is distributed under MIT License. Please see the LICENSE file for details on copying and distribution.
Basic usage
Given two configuration files:
-
config1.cfg:
# This is a comment [section] key1 = value1
-
config2.cfg
[section] key1 += 'another value' key2 = value2
By calling:
m_conf.load(Path(config1.cfg), Path(config2.cfg))
A resulting dict will be returned:
{
'section': {
'key1': ['value1', 'another value'],
'key2': ['value2']
}
}
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 m_conf-0.1.1.tar.gz.
File metadata
- Download URL: m_conf-0.1.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10d18c80f908227243215ce4688a2ac6b4954451ec352279b5fba8711a875131
|
|
| MD5 |
90ce0b4fad286431cdb8a27b1b329433
|
|
| BLAKE2b-256 |
4243caf97c95f33a4eadc9b0281d1f804c86dc2188f654cf29fd41932074c955
|
File details
Details for the file m_conf-0.1.1-py3-none-any.whl.
File metadata
- Download URL: m_conf-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a256ed71a657e70def6b73d1d77f07c875891175eb4d068e8d0394e227f23c0a
|
|
| MD5 |
6dd1e13e75e1136fcb4af2e4ef48aeb9
|
|
| BLAKE2b-256 |
93b9de4f4c0d7f9a8136665afb06553026ac9c4c77c72dd6bbc1a1169139a34c
|