dynamic-config-0.1.0
توضیحات
Distributed dynamic configuration based on Redis
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dynamic-config-0.1.0 |
| نام | dynamic-config |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Euraxluo |
| ایمیل نویسنده | euraxluo@qq.com |
| آدرس صفحه اصلی | https://github.com/Euraxluo/dynamic_config |
| آدرس اینترنتی | https://pypi.org/project/dynamic-config/ |
| مجوز | The MIT LICENSE |
### 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]
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.1.4,<5.0.0 | redis |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.5,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl dynamic-config-0.1.0:
pip install dynamic-config-0.1.0.whl
نصب پکیج tar.gz dynamic-config-0.1.0:
pip install dynamic-config-0.1.0.tar.gz