通用基础设施 SDK:配置、日志、事件、调度、插件、协议、调用链
Project description
echotools
通用基础设施 SDK:配置中心、日志、事件总线、调用链、任务调度、 插件框架、协议系统、自适应选择器,完全项目无关,兼容 Python 3.8-3.14。
安装
pip install echotools[all]
快速开始
from echotools import EchoTools
et = EchoTools(service_name="myapp")
et.logger.configure(level="INFO", color=True)
cfg = et.config
cfg.load("config.toml")
with et.tracer.trace("request") as trace:
with et.tracer.span(trace, "db") as span:
span.set_tag("query", "select 1")
能力总览
- ConfigCenter 点路径配置 + 热重载 + 类型绑定
- LoggerManager 调用链注入 + 颜色 + 轮转
- EventBus 同步/异步事件
- Tracer 轻量调用链
- TaskDispatcher 单发/竞速 + 自适应选择
- PluginRegistry 自动发现 + 热重载
- get_protocol XML/antml/original/bracket/nous/custom 协议
- ProxyManager HTTP/HTTPS/SOCKS
- AutoUpdater git 自动更新
- FileWatcher 轮询文件监视
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
echotools-1.0.9.tar.gz
(78.6 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
echotools-1.0.9-py3-none-any.whl
(109.3 kB
view details)
File details
Details for the file echotools-1.0.9.tar.gz.
File metadata
- Download URL: echotools-1.0.9.tar.gz
- Upload date:
- Size: 78.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0169973df422ba2a341d3defd63291bc5fdd91a1546d4d21ebbe9c6cf29b9d92
|
|
| MD5 |
46f8d8f1c38e18371ff381e3d5a7255d
|
|
| BLAKE2b-256 |
5a9b4960f0032c4b5d5c5eada4f21d801203502f59d39e8d59958f5e6542a296
|
File details
Details for the file echotools-1.0.9-py3-none-any.whl.
File metadata
- Download URL: echotools-1.0.9-py3-none-any.whl
- Upload date:
- Size: 109.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f4457b0c6e8eb1c543f9772a8585181c9003f5f90f681edbec82a23f30748e0
|
|
| MD5 |
909b905176235d56fc1ab93d6ef30c44
|
|
| BLAKE2b-256 |
989a0b2c47d8d5d408b2c69c83521996269b8d7ec6b83df518a4d0d6f9cf40c0
|