configalchemy 0.5.5

Creator: coderz1093

Last updated:

Add to Cart

Description:

configalchemy 0.5.5

ConfigAlchemy






The Settings and Configuration on ideal practices for app development and package building.

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 DefaultConfig(BaseConfig):
NAME = "test"

config = DefaultConfig()
config.NAME
>>> 'test'


Features

Base on The Twelve-Factor App Configuration.
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 (default: json)
Environment Variables



Proper Typecast before overriding
Generic Config Type Support by custom typecast
Lazy and Proxy Object Support.
Extension


Full Apollo - A reliable configuration management system Features Support






TODO

IOC - Injector, Singleton




History

0.5.* (2020-12)

Support SingletonMetaClass
Remove unpack feature in BaseConfig by removing Mapping Class
Support nested config for large modular purpose
Support local object
Support generic pool object
Support Dot Notation to update BaseConfig object



0.4.* (2020-06)

Refatory configure function
Support property configuration



0.3.* (2020-03)

Add proxy and lazy module.
Add find_caller to trace source of config value
Refactory ConfigMeta data structure



0.2.* (2019-08)

Change global variable to weak reference
Remove Lock (Prepare to implement optimistic raw lock if necessary)
Improve Priority Data Structure
Improve Field Validation
Use OOP to define call function
Properer validation and typecast
Improve Type Annotations
Import JSON type



0.1.0 (2019-08-01)

Init Project.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.