Distributed dynamic configuration based on Redis
Project description
dynamic_config
- name = "dynamic_config"
- description = "Distributed dynamic configuration based on Redis"
- authors = ["Euraxluo euraxluo@qq.com"]
- license = "The MIT LICENSE"
- repository = "https://github.com/Euraxluo/dynamic_config"
install
pip install dynamic-config
UseAge
from dynamic_config.dynamic_config import DynamicConfig, Filed
from example.conftest import rdb
from loguru import logger
DynamicConfig.register(rdb,logger=logger)
class ConfigTest(DynamicConfig):
__prefix__ = "test_config"
__enable__ = True
x: str = None
y: str = Filed(None)
print(ConfigTest.x)
print(ConfigTest.y)
ConfigTest.x = 10
ConfigTest.y = [1,2,3,4]
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
dynamic_config-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for dynamic_config-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6ddacc19b51d903e35fd3f4a29fda2c07d78720776409d23f86a143e523996 |
|
MD5 | 4de8d4de4a7fe29809c88a272fff7e65 |
|
BLAKE2b-256 | 3254e61dca7fe66131b852d758861bfbcbffbeb1e82c6caad66c075c3d6e1491 |