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.1.tar.gz
(5.5 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.1.tar.gz.
File metadata
- Download URL: confignest-1.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4faa7bf659a9b846715fff8579f3040d7b4abc1a84fe8b4f34bd5cdc4727be1
|
|
| MD5 |
eecae4583c4a7d6efba16ac9f331fe39
|
|
| BLAKE2b-256 |
907986c7d54e84ffa65b13fdb52bd057d095288c4f9243e7f23b5a05c2c6ec1b
|
File details
Details for the file confignest-1.0.1-py3-none-any.whl.
File metadata
- Download URL: confignest-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
baa185afe835a287cc3d9e0237b23c24f33dc8c32eaab7b93a32bda92ce97deb
|
|
| MD5 |
6bc0c6d18330afea3f2fdec0b87d24b5
|
|
| BLAKE2b-256 |
35cfe7f6cd0137e6d48911fb37832ae66280b7caaf39a4110c5054d08e07c4f0
|