A utility module for handling app settings.
Project description
ycsettings is a utility module for handling app settings. It simplifies the searching of multiple sources (i.e., environment, files, etc) for settings and configuration variables.
Example
parser = ArgumentParser(description='Hello World!')
parser.add_argument('settings_uri', type=str, metavar='<config_file>', help='Positional option')
A = parser.parse_args()
settings_dict = {'A': 5}
settings = Settings(A, settings_dict, 's3://example/settings.yaml', search_first=['env', 'env_settings_uri'], warn_missing=False)
print(settings.getint('A', default=5, raise_exception=True))
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
ycsettings-0.1.5.tar.gz
(13.2 kB
view details)
File details
Details for the file ycsettings-0.1.5.tar.gz
.
File metadata
- Download URL: ycsettings-0.1.5.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e3448e9bbc492754f9ca84ec9c4e7aef5223997a64ce7d371cb82ca8e52173a |
|
MD5 | 9489a995f843429d84cf18b7c160370a |
|
BLAKE2b-256 | eec068141d6d16d22189f7c58cd285d29b56a9104a34b1ee5b7304ecfcb6dc06 |