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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size just-config-20.3.tar.gz (1.9 kB) | File type Source | Python version None | Upload date | Hashes View |