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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b255de21ff4195f954881b647d69179706f0668120e4eac4c5dc778cbe16360e
|
|
| MD5 |
de7dd669bcb77d8b2a6f9decf071d540
|
|
| BLAKE2b-256 |
9751ffc53243c6c71e764f778baa3b85dcac043b43387541b84d66120e4e89cd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6ddacc19b51d903e35fd3f4a29fda2c07d78720776409d23f86a143e523996
|
|
| MD5 |
4de8d4de4a7fe29809c88a272fff7e65
|
|
| BLAKE2b-256 |
3254e61dca7fe66131b852d758861bfbcbffbeb1e82c6caad66c075c3d6e1491
|