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.0.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.0.tar.gz.
File metadata
- Download URL: confignest-1.0.0.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 |
dcbc5c0aaccb6666802fe401fd182b68b867875dbf44dea1e510aeb799222fb8
|
|
| MD5 |
f9f8eac9300bda30e6a56d8135ef38fe
|
|
| BLAKE2b-256 |
91e8a8fb76cd9fd6928edc8feed00511fb9fbf44b7877b31820247639f02aa79
|
File details
Details for the file confignest-1.0.0-py3-none-any.whl.
File metadata
- Download URL: confignest-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 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 |
c5a5b923ec908c7382e541a60526ea2ce817810bf01647ab94b85897412c27ff
|
|
| MD5 |
4dd9e30b8f42d03589e9a26ce530a3d2
|
|
| BLAKE2b-256 |
3aa77ce1dbd3603f7c5b7b03301eccacc08824b5c4cb9ebcd0f6bd69e2fc0242
|