Minimalistic library to handle configuration for the application
Project description
just_config
Minimalistic library to handle configuration for the application.
As for now, it will look for the configuration value in the following order:
- In system environment variables.
- In
default.ini
file in the current working directory - In
default.ini
file in application-specific folder under user home directory
Usage:
>>> from just_config.configuration import Configuration
>>> cfg = Configuration()
>>> cfg['test']
'value'
>>> # If I store my configuration in ~/.app/default.ini
>>> cfg = Configuration('app')
>>> cfg['test']
'value'
Example configuration file:
[DEFAULT]
test=value
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
just-config-20.3.tar.gz
(1.9 kB
view details)
File details
Details for the file just-config-20.3.tar.gz
.
File metadata
- Download URL: just-config-20.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49589b52d51df58ffc0374f6f49a5743c8a48f37277584d43d1f9c2331044514 |
|
MD5 | 42fa51213550bb2087b5a2e5b4adc27e |
|
BLAKE2b-256 | b6db14ae9553304747af2332d300df576311015454afb4a9f8d8db2ecd3056ac |