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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dynamic_config-0.1.0.tar.gz.

File metadata

  • Download URL: dynamic_config-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.6.12 Linux/5.4.0-99-generic

File hashes

Hashes for dynamic_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b255de21ff4195f954881b647d69179706f0668120e4eac4c5dc778cbe16360e
MD5 de7dd669bcb77d8b2a6f9decf071d540
BLAKE2b-256 9751ffc53243c6c71e764f778baa3b85dcac043b43387541b84d66120e4e89cd

See more details on using hashes here.

File details

Details for the file dynamic_config-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dynamic_config-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.6.12 Linux/5.4.0-99-generic

File hashes

Hashes for dynamic_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6ddacc19b51d903e35fd3f4a29fda2c07d78720776409d23f86a143e523996
MD5 4de8d4de4a7fe29809c88a272fff7e65
BLAKE2b-256 3254e61dca7fe66131b852d758861bfbcbffbeb1e82c6caad66c075c3d6e1491

See more details on using hashes here.

Supported by

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