Skip to main content

Python client for CelestialTree event provenance service

Project description

CelestialTree PyClient

一个轻量级的 Python 客户端,用于与 CelestialTree 交互,提供事件上报、血缘(lineage)追踪以及基础查询能力。

该客户端被设计为可嵌入到任务系统中(例如 CelestialFlow),用于记录并追踪任务在因果事件树中的完整生命周期。

功能特性

  • 向 CelestialTree 服务发送结构化事件
  • 追踪事件之间的父子关系
  • 面向任务执行与编排系统进行设计
  • 接口简洁、依赖极少的 Python 客户端

安装

pip install celestialtree

使用示例

from celestialtree import Client

client = Client(
    base_url="http://localhost:7777",
)

event_id = client.emit(
    event_type="task.success",
    parents=[123456],
    message="任务成功完成"
)

print(event_id)

Star 历史趋势(Star History)

如果对项目感兴趣的话,欢迎star。如果有问题或者建议的话, 欢迎提交Issues或者在Discussion中告诉我。

Star History Chart

许可(License)

This project is licensed under the MIT License - see the LICENSE file for details.

作者(Author)

Author: Mr-xiaotian Email: mingxiaomingtian@gmail.com Project Link: https://github.com/Mr-xiaotian/celestialtree-pyclient

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

celestialtree-0.1.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

celestialtree-0.1.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file celestialtree-0.1.2.tar.gz.

File metadata

  • Download URL: celestialtree-0.1.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for celestialtree-0.1.2.tar.gz
Algorithm Hash digest
SHA256 12c2507b93308412f059aabc5a6af60b1400b7b2bff7102d3ad14b2c39756f91
MD5 944206f66ac618df5aba69c59619cc6e
BLAKE2b-256 2edd18d291699b58c9229057953911d96f6b1d5b7def841318a62e290fa70434

See more details on using hashes here.

File details

Details for the file celestialtree-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: celestialtree-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for celestialtree-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef3e52e5a13bb0cb01e72074499d0572f9eaaadba2460f9556ab0f19272e04a3
MD5 b9767b2e8f20a55942e79d3882efe814
BLAKE2b-256 84007aeac262ad122f08117f410a11dcd395693b504a6e3e7b880f84a3f97735

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