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
Metadata
Release files for configmanager-hjy 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| configmanager_hjy-0.3.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| configmanager_hjy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / configmanager_hjy-0.3.0.tar.gz
| Download URL | configmanager_hjy-0.3.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
559c882062f72a2a025409181024b1f79690c7d3aae32e10a5f41039630fa143
|
|
BLAKE2b-256 checksum How to use checksums |
8cc4d3b968aff517df0e2ef96adee627e0d33b0864d0418725796e48f925bde5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / configmanager_hjy-0.3.0-py3-none-any.whl
| Download URL | configmanager_hjy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d39af51a221a66c8743262a3628fece405c755033796e0e508a0d50c5634de04
|
|
BLAKE2b-256 checksum How to use checksums |
b1a7b7e0bfdbb1ac726b8337105029090610441a1f1585cffaacaaffeee1706e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for configmanager-hjy 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.