The Settings and Configuration on ideal practices for app development.
Project description
ConfigAlchemy
The Settings and Configuration on ideal practices for app development.
Free software: MIT license
Documentation: https://configalchemy.readthedocs.io.
Installation
$ pipenv install configalchemy
✨🍰✨
Only Python 3.6+ is supported.
Example
from configalchemy import BaseConfig
class DefaultObject(BaseConfig):
TEST = "test"
config = DefaultObject()
print(config.TEST) # attribute style access
print(config['TEST']) # dict item style access
print(config.get('TEST')) # dict get style access
print(config.get('HOST', 'local')) # Providing defaults
Features
Configurable Dynamic configurator
Configuration-Oriented Development
Define default config value and its type which is used in your project
Use class to support inheritance to explicitly define configurable config
override config value from multiple source with priority supported
Callable function return value
File (json)
Environment Variables
Force typecast before overriding
Inherit from typing.MutableMapping
Extension
Full Apollo - A reliable configuration management system Features Support
TODO
Complex Config Type Support
History
0.1.0 (2019-08-01)
Init Project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for configalchemy-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34d46ee86235cef2297151a5ca635b01e113ef69172ed9722a053abb9cad94b |
|
MD5 | 82af3afe951d276354856be59e318862 |
|
BLAKE2b-256 | 81f40e3f56100ef93edb103cf19abf1903195eff4780305bd39281c3cdec5164 |