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.inifile in the current working directory - In
default.inifile 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-24.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file just-config-24.1.tar.gz.
File metadata
- Download URL: just-config-24.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf53e6f49a9ba841565bce727b2d3808bd41794d000f8835f702c74b3552486e
|
|
| MD5 |
3760d9fb92128e8a493016096bb14f68
|
|
| BLAKE2b-256 |
57db8ff3e8e774f870cad7a38aa630a8f7ff400c89762aa73b0c25ff0202c482
|
File details
Details for the file just_config-24.1-py3-none-any.whl.
File metadata
- Download URL: just_config-24.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4580ec0e95fbf0a5e37bd6a0f32cdf3a0aeaf97d1ae63c0bfafe5e807e7f77d
|
|
| MD5 |
020168930d248c0d626ad64669efc2e8
|
|
| BLAKE2b-256 |
ad31fd4b2efa7ceac427d8c0a01f5069158f299181086924013b0496de29dfe0
|