Metadata-Version: 2.4
Name: celestialtree
Version: 0.1.2
Summary: Python client for CelestialTree event provenance service
Author-email: Mr-xiaotian <mingxiaomingtian@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Mr-xiaotian
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Mr-xiaotian/celestialtree-pyclient
Project-URL: Repository, https://github.com/Mr-xiaotian/celestialtree-pyclient
Project-URL: Issues, https://github.com/Mr-xiaotian/celestialtree-pyclient/issues
Keywords: celestialtree,event,provenance,causality,distributed-systems,task-tracking
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Distributed Computing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28
Requires-Dist: grpcio>=1.60
Requires-Dist: protobuf>=4.21
Dynamic: license-file

# CelestialTree PyClient

一个轻量级的 Python 客户端，用于与 [CelestialTree](https://github.com/Mr-xiaotian/CelestialTree) 交互，提供事件上报、血缘（lineage）追踪以及基础查询能力。

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

## 功能特性

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

## 安装

```bash
pip install celestialtree
```

## 使用示例

```python
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](https://github.com/Mr-xiaotian/celestialtree-pyclient/issues)或者在[Discussion](https://github.com/Mr-xiaotian/celestialtree-pyclient/discussions)中告诉我。

[![Star History Chart](https://api.star-history.com/svg?repos=Mr-xiaotian/celestialtree-pyclient&type=Date)](https://star-history.com/#Mr-xiaotian/celestialtree-pyclient&Date)

## 许可（License）
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 作者（Author）
Author: Mr-xiaotian
Email: mingxiaomingtian@gmail.com
Project Link: [https://github.com/Mr-xiaotian/celestialtree-pyclient](https://github.com/Mr-xiaotian/celestialtree-pyclient)

