Python SDK for Postghost.
Project description
Postghost Python SDK
Development install
On Debian/Ubuntu/WSL, system Python may be “externally managed” (PEP 668). Use a virtualenv:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -U pip
pip install -e .
Basic usage:
from postghost_sdk import PostghostClient
client = PostghostClient(
api_key="YOUR_API_KEY",
)
client.ingestion.pulse("job_abc123", payload={"status": "ok"})
Point to the Postghost dev environment:
client = PostghostClient(api_key="YOUR_API_KEY", test=True)
Next steps
- Use
client.ingestion.api_monitoring(...)andclient.ingestion.logs(...)to send API monitoring events and structured logs. - See the Postghost documentation for full API details and best practices.
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
postghost_sdk-0.1.1.tar.gz
(4.2 kB
view details)
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 postghost_sdk-0.1.1.tar.gz.
File metadata
- Download URL: postghost_sdk-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f96bd93ed662cae6b6d5c4510adf85f3ba3d538d0604b5d35add6dc15110030
|
|
| MD5 |
7391290fa15c10d7b4fd1ba65e279856
|
|
| BLAKE2b-256 |
b5cedd5a96827dd8c0285206111d62681ac4d65dc7b54328c7747c71d79a6185
|
File details
Details for the file postghost_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: postghost_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcab0289b65e0a2b35e5fa564bb96fe29cb5f33d359a396046e140fd9f0bbb2d
|
|
| MD5 |
6549a684d96d4577ef532fc07db8c78b
|
|
| BLAKE2b-256 |
c6b85eb9ab4a124faefb2118cd054b945fc7a2b23250382a209fe9f38545df36
|