Skip to main content

Python client for CelestialTree event provenance service

Project description

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

pip install celestialtree

Usage

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 file for details.

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.1.tar.gz (8.8 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.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for celestialtree-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0926688f18611454790414d1245b4c4abaf736dcb8cdf5be7107d6ef533e9302
MD5 2c477ed0e5e4f32b24d5278ac7c892b1
BLAKE2b-256 9a7085fdb69b292626b79108115477c101d8b4c6bd256dfe7162cc63162d0dc3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for celestialtree-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7afe794da6b056aeda25dae0de8366a0dd28d2d9f17758241fa83348f498476b
MD5 b0c2cf54cb32ddbfd86dbc2db73c0138
BLAKE2b-256 598ffcd44ab8fa4897b436df007319c2beb357c4f305727460627d58c021847d

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