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.3.tar.gz (12.6 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.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: celestialtree-0.1.3.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for celestialtree-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64721bd020dae60b208cec875119ea6d07ae0b641c78f58588b6171e591e2db8
MD5 a0c9e8f3848d756feaa7061787f1e110
BLAKE2b-256 37c2ca1eb4e65bec935f64830e36724dd430fcb6f8364da59b292e511abe1f68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: celestialtree-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for celestialtree-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 667f0efccb256cc5a8beb229ec199a1efde6f531b5264b5ba7ce1f816fb16cb3
MD5 c8e275e2662b70df56271a77b32401e5
BLAKE2b-256 cc04d754e9d911686384844fb2737163f2212655f236e21d0154de43e263ed55

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