Skip to main content

User Manual

https://travis-ci.org/exhuma/config_resolver.svg?branch=master
Fulll Documentation

https://config-resolver.readthedocs.org/en/latest/

Repository

https://github.com/exhuma/config_resolver

PyPI

https://pypi.python.org/pypi/config_resolver

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.1.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for config-resolver 4.3.1.post1
File Size Uploaded Provenance Actions
config_resolver-4.3.1.post1.tar.gz 10.4 kB Without provenance Details for config_resolver-4.3.1.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for config-resolver 4.3.1.post1
File Interpreter ABI Platform Actions
config_resolver-4.3.1.post1-py3-none-any.whl Python 3 none any Details for config_resolver-4.3.1.post1-py3-none-any.whl

Total release size: 21.7 kB

Release files / config_resolver-4.3.1.post1.tar.gz

Download URL config_resolver-4.3.1.post1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e5a70df96d373eb8dedfa0076a8fd5fbf01b78697302ba5936673aac2a6a8ec3
BLAKE2b-256 checksum
How to use checksums
86f452649dd993aa036f16bd30f7e4f1dd1721e731bd04e9f0a322c4f5e3ca29
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.1.post1-py3-none-any.whl

Download URL config_resolver-4.3.1.post1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b56e6b564f1354386b27c9990a3342beab1b72eba8326790a2942430d4c9f29
BLAKE2b-256 checksum
How to use checksums
80a700edad31e0a03bdb2431bdbd334a57ad83ad2ecb1d2c9b3a90875f2e2675
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

Security for config-resolver 4.3.1.post1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.3.1.post1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page