Kohi API monitoring SDK for Python
Project description
kohi-python
Python SDK for Kohi.
Install
pip install kohi-python
Quick Start
from fastapi import FastAPI
from kohi import Monitor
app = FastAPI()
monitor = Monitor(
app=app,
project_key="pk_...",
secret_key="...",
)
Monitor(app=...) auto-instruments supported FastAPI and Flask apps. You can also create a monitor without app= and submit events manually.
Behavior
- Validates
project_key/secret_keyon startup - Batches events, gzips payloads, and signs them with HMAC-SHA256
- Retries retryable network and HTTP failures before dropping a batch
- Redacts common secret fields and masks emails before send
- Preserves client IP extraction priority across
cf-connecting-ip,x-forwarded-for, and related proxy headers
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
kohi_python-0.1.3.tar.gz
(9.0 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 kohi_python-0.1.3.tar.gz.
File metadata
- Download URL: kohi_python-0.1.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a0a28bbe8037690662ab3ee2072b115b3d4322e90d03eaf8b4497699865a19
|
|
| MD5 |
d156eb72db978faa193b4a865201c85d
|
|
| BLAKE2b-256 |
fcfaec5db866ae2a981f1bc9be9f7e05eba41065d20ef5bf20e13e11bd6e3f4b
|
File details
Details for the file kohi_python-0.1.3-py3-none-any.whl.
File metadata
- Download URL: kohi_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
769605dfba87aedb93136b8653b80ff8cd82151a373a808ccef0612bae124f9d
|
|
| MD5 |
cf4f80ce39b368f054d39c8a9c721844
|
|
| BLAKE2b-256 |
fbf19f53802b05628752b79916a01af5df3d73b4627bf6036d88c3254ade8526
|