Skip to main content

通用基础设施 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


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.1.tar.gz (75.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

echotools-1.0.1-py3-none-any.whl (106.4 kB view details)

Uploaded Python 3

File details

Details for the file echotools-1.0.1.tar.gz.

File metadata

  • Download URL: echotools-1.0.1.tar.gz
  • Upload date:
  • Size: 75.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for echotools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8437b3a9df2fe1f98562fc574b6548003c04ed4134d6545a9e45bddd9bb96e3e
MD5 b4560f6a62740782de00815ae2b40a1a
BLAKE2b-256 f705c96b8946e8ad3f175226db537a5ee5bdb3e9b1350a9c50ddf2a2d2fbcadd

See more details on using hashes here.

File details

Details for the file echotools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: echotools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 106.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for echotools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47d614568844b06ee2b959103bfae429837ce47581870bbd5b48593f55da95c1
MD5 026f1c7f118365eed42e89f135332a39
BLAKE2b-256 0775a58f1eadb85f1e4e4a626a13db3b35ca2868687577d6fa4326aa94b84490

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page