Skip to main content

Python SDK for Platform Observability log ingestion and analytics

Project description

Platform Observability Python SDK

A Python SDK for ingesting logs and interacting with the Platform Observability service by Red Duck Labs.

Installation

This package can be installed from PyPI (after publishing):

pip install platform-observability-sdk

Quick start

from platform_observability import ObservabilityClient, LogEntry, LogLevel

client = ObservabilityClient(api_key="YOUR_API_KEY")
client.ingest_logs([
    LogEntry(message="Hello from SDK", level=LogLevel.INFO).to_dict()
])

CLI

After installation, a small helper CLI obs-cli is available:

obs-cli --help

Development

  • Python >= 3.8
  • Build wheel:
pip install build
python -m build
  • Run tests:
pip install .[dev]
pytest

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

redducklabs_platform_observability_sdk-1.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file redducklabs_platform_observability_sdk-1.0.0.tar.gz.

File metadata

File hashes

Hashes for redducklabs_platform_observability_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d745945821cdae20f15c80ccf3151388791bc4f6204e007d133b575ec24f6231
MD5 fd8c2fb252438c647f5510491d9cd412
BLAKE2b-256 07eb5d705ff3af740f33be2c9b08afdf297ab3d74eacab3b722da53d4bce2497

See more details on using hashes here.

Provenance

The following attestation bundles were made for redducklabs_platform_observability_sdk-1.0.0.tar.gz:

Publisher: publish-python-sdk.yml on redducklabs/platform-observability

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 486ec878bd54dc0f476aad642007a71cfe91352652b2db5eba7e6c42d23a84a3
MD5 2cb6c1b2d2332fe5aa742c391b5e914b
BLAKE2b-256 cd919c1c8e541e411a3c209ec717fc1ddf91721f1d8bfea82a7cc064bc2f0a82

See more details on using hashes here.

Provenance

The following attestation bundles were made for redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl:

Publisher: publish-python-sdk.yml on redducklabs/platform-observability

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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