Metadata-Version: 2.4
Name: celestialtree
Version: 0.1.1
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
Dynamic: license-file

# CelestialTree PyClient

A lightweight Python client for interacting with **CelestialTree**, providing event emission, lineage tracking, and basic querying capabilities.

This client is designed to be embedded into task systems (such as CelestialFlow) to record and trace the lifecycle of tasks through a causal event tree.

## Features

- Emit structured events to a CelestialTree service
- Track parent–child relationships between events
- Designed for task execution and orchestration systems
- Simple, dependency-light Python interface

## Installation

```bash
pip install celestialtree
```

## Usage

```python
from celestialtree import Client

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

event_id = client.emit(
    event_type="task.success",
    parents=[123456],
    message="Task completed successfully"
)

print(event_id)
```

## Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
