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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redducklabs_platform_observability_sdk-1.0.0.tar.gz.
File metadata
- Download URL: redducklabs_platform_observability_sdk-1.0.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d745945821cdae20f15c80ccf3151388791bc4f6204e007d133b575ec24f6231
|
|
| MD5 |
fd8c2fb252438c647f5510491d9cd412
|
|
| BLAKE2b-256 |
07eb5d705ff3af740f33be2c9b08afdf297ab3d74eacab3b722da53d4bce2497
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redducklabs_platform_observability_sdk-1.0.0.tar.gz -
Subject digest:
d745945821cdae20f15c80ccf3151388791bc4f6204e007d133b575ec24f6231 - Sigstore transparency entry: 427024236
- Sigstore integration time:
-
Permalink:
redducklabs/platform-observability@125d58119a62001f00c3a8c11654aba197b1191e -
Branch / Tag:
refs/heads/development - Owner: https://github.com/redducklabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
publish-python-sdk.yml@125d58119a62001f00c3a8c11654aba197b1191e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
486ec878bd54dc0f476aad642007a71cfe91352652b2db5eba7e6c42d23a84a3
|
|
| MD5 |
2cb6c1b2d2332fe5aa742c391b5e914b
|
|
| BLAKE2b-256 |
cd919c1c8e541e411a3c209ec717fc1ddf91721f1d8bfea82a7cc064bc2f0a82
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redducklabs_platform_observability_sdk-1.0.0-py3-none-any.whl -
Subject digest:
486ec878bd54dc0f476aad642007a71cfe91352652b2db5eba7e6c42d23a84a3 - Sigstore transparency entry: 427024246
- Sigstore integration time:
-
Permalink:
redducklabs/platform-observability@125d58119a62001f00c3a8c11654aba197b1191e -
Branch / Tag:
refs/heads/development - Owner: https://github.com/redducklabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
publish-python-sdk.yml@125d58119a62001f00c3a8c11654aba197b1191e -
Trigger Event:
workflow_dispatch
-
Statement type: