A very simple and small utility to provide a way to search for configuration files. For now it is only tested on posix systems, but it should also work on Windows.
For posix systems it will search for config files in the following order:
/etc/<group_name>/<app_name>/<conf_name>
~/.<group_name>/<app_name>/<conf_name>
The current active working directory (of the running process)
A file named in the environment variable <APP_NAME>_CONFIG
The complete search path can be overwritten by setting the environment variable <APP_NAME>_PATH, separating the different paths by either : (posix) or ; (windows).
The last file found will always take precedence by extending/overwriting previously loaded files. As an example you can have system globals in /etc, and then on a per-user basis override values. Existing values are kept, so config files further down the lookup chain do not contain all values.
Even further down the lookup chain you can use the working-directory or <APP_NAME>_CONFIG to override values on a per-application instance basis.
Metadata
Release files for config-resolver 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| config_resolver-2.0.tar.gz | 3.0 kB | Details |
Release files / config_resolver-2.0.tar.gz
| Download URL | config_resolver-2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
577dcceaa28b41fa97b5b327c6dbde1489a3e04b7287a9b698459381d7ac920c
|
|
BLAKE2b-256 checksum How to use checksums |
a41bcb98b3a8ecef2744479b41f23910787542836fd508a9f6d07baecb0b34e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |