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.2.tar.gz
(5.6 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.2.tar.gz.
File metadata
- Download URL: confignest-1.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220b53760c43b5789f73b586c927cd7e5459301b8e6e33c8bedc259dbb5047bf
|
|
| MD5 |
d7885cb0f6a62304ef53682e19ed4b08
|
|
| BLAKE2b-256 |
d505af27714eca60fde866673f352b42348d2704264a7048316ceb607d1aef3e
|
File details
Details for the file confignest-1.0.2-py3-none-any.whl.
File metadata
- Download URL: confignest-1.0.2-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 |
9fa4055e2accb194e5080a8211109ffdedc8f33b37c408abab161babcde0c9b5
|
|
| MD5 |
a03022b4aaf083acb6e7594c362b2a3d
|
|
| BLAKE2b-256 |
4d68f0e02e7c74b8229ce0019a76abb9e1ab608d536613b9a0768a049421aa84
|