统一配置管理包 - 配置的云原生大脑
Project description
configmanager_hjy
统一配置管理包 - 配置的云原生大脑
简介
configmanager_hjy 是一个高度通用、可复用的配置管理包,专门服务于其他 _hjy 包,提供统一的配置管理接口。
核心特性
- 统一配置入口 - 为所有
_hjy包提供单一的配置管理接口 - 云原生配置存储 - 配置存储在云端,支持热更新和版本管理
- 高度可复用 - 设计为通用包,可在任何项目中复用
- 完美集成 - 与现有
_hjy包无缝集成
安装
pip install configmanager-hjy==0.3.0
快速开始
from configmanager_hjy import ConfigManager
# 初始化配置管理器
config_manager = ConfigManager()
# 获取数据库配置
db_config = config_manager.get('database.mysql')
# 获取Redis配置
redis_config = config_manager.get('cache.redis')
# 获取AI服务配置
ai_config = config_manager.get('services.ai_runner')
配置监听
# 监听配置变更
@config_manager.watch('database.mysql')
def handle_db_config_change(old_value, new_value):
logger.info("数据库配置已更新", new_config=new_value)
# 重新初始化数据库连接
许可证
MIT License
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
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 configmanager_hjy-0.3.0.tar.gz.
File metadata
- Download URL: configmanager_hjy-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
559c882062f72a2a025409181024b1f79690c7d3aae32e10a5f41039630fa143
|
|
| MD5 |
6886a4a2dda77060f96bf890fa61b3f9
|
|
| BLAKE2b-256 |
8cc4d3b968aff517df0e2ef96adee627e0d33b0864d0418725796e48f925bde5
|
File details
Details for the file configmanager_hjy-0.3.0-py3-none-any.whl.
File metadata
- Download URL: configmanager_hjy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d39af51a221a66c8743262a3628fece405c755033796e0e508a0d50c5634de04
|
|
| MD5 |
23d34980e42820f6ce7039809bb1a51e
|
|
| BLAKE2b-256 |
b1a7b7e0bfdbb1ac726b8337105029090610441a1f1585cffaacaaffeee1706e
|