Managing Complex Configs in Nested Way.
Project description
This is for arranging multiple config files.
config nest manifest
This is a file under the config nest subfolder, it has 3 fields:
selection_mode: [one, all] # To include all names or select one of them
if_no_selection: [skip, deafult, error] # if selection_mode is `one`, and not specified which to select in view file, skip this name, use the default name (next field value), or raise error when parsing
deafult_selection: [...] # if if_no_selection is `default`, this name will return
- The default selection_mode=all, which means, if no manifest file (should be named CONFIGNEST_MANIFEST) all names are included.
- The default if_no_selection=error, which means, if you do not select any of them in view file, this will raise error.
demo
For a demo, see the repo: 0-1CxH/megatron-wrap
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
confignest-1.0.5.tar.gz
(5.7 kB
view details)
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 confignest-1.0.5.tar.gz.
File metadata
- Download URL: confignest-1.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eee09790cd091a1dfca6cf6392f18613786a83e6d20bed3d70ee74da58fd0ca
|
|
| MD5 |
15f0b7a52dca7dee8f8de86148741597
|
|
| BLAKE2b-256 |
ac93fe0a6d10b5dff426540fca9f0fae319e9ec9c68735a3ae9ed1e0534e3a7d
|
File details
Details for the file confignest-1.0.5-py3-none-any.whl.
File metadata
- Download URL: confignest-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970a91366b337839189f8c7870620b5dab71783b4be113470ec7ec238d22e9e3
|
|
| MD5 |
0fbc9d1c6ec36148bbd6e5304affde25
|
|
| BLAKE2b-256 |
0492b7b463792220844d09f6935cf9e9b2f8420f2758bfd09343c0de3d736e33
|