1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
User Manual
- Fulll Documentation
- Repository
- PyPI
Rationale
Many of the larger frameworks (not only web frameworks) offer their own configuration management. But it looks different everywhere. Both in code and in usage later on. Additionally, the operating system usually has some default, predictable place to look for configuration values. On Linux, this is /etc and the XDG Base Dir Spec.
The code for finding these config files is always the same. But finding config files can be more interesting than that:
If config files contain passwords, the application should issue appropriate warnings if it encounters an insecure file and refuse to load it.
The expected structure in the config file can be versioned (think: schema). If an application is upgraded and expects new values to exist in an old version file, it should notify the user.
It should be possible to override the configuration per installed instance, even per execution.
config_resolver tackles all these challenges in a simple-to-use drop-in module. The module uses no additional external modules (no additional dependencies, pure Python) so it can be used in any application without adding unnecessary bloat.
One last thing that config_resolver provides, is a better handling of default values than instances of SafeConfigParser of the standard library. The stdlib config parser can only specify defaults for options without associating them to a section! This means that you cannot have two options with the same name in multiple sections with different default values. config_resolver handles default values at the time you call .get(), which makes it independent of the section.
Metadata
Release files for config-resolver 4.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| config_resolver-4.3.5-py3-none-any.whl | Python 3 | none | any | Details |
| config_resolver-4.3.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / config_resolver-4.3.5-py3-none-any.whl
| Download URL | config_resolver-4.3.5-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a5bd48105a105eea0ce4cb316ed7b3ce69b716c795a4f13a1780d104a9fb3f9
|
|
BLAKE2b-256 checksum How to use checksums |
68381367b14a7948e40674f23acafb1d84aac1e5ba4b12a461bc963dc950584f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|
Release files / config_resolver-4.3.5-py2.py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | config_resolver-4.3.5-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b14b8b01df2746dc55328facec21149dd3bb916da71b34c1ebe835d23ab93a12
|
|
BLAKE2b-256 checksum How to use checksums |
17e294c7732e5f9f6a734cf90315cc653396eecd77237d9f9a9c1dd9632dcbe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.2
|