Skip to main content

Distributed dynamic configuration based on Redis

Project description

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


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)

Uploaded Source

Built Distribution

dynamic_config-0.1.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page