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.4.tar.gz
(10.1 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.4.tar.gz.
File metadata
- Download URL: kohi_python-0.1.4.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27fcacb8dad2202ddbcea49ba7fb80952dce9eb31d50dd210e397128d89ea1ea
|
|
| MD5 |
6e2e9b3b51273414af5631255755a567
|
|
| BLAKE2b-256 |
de7fac7672e76a10d513fd437efe131393d7c480f650a10f9dfeba13eded488e
|
File details
Details for the file kohi_python-0.1.4-py3-none-any.whl.
File metadata
- Download URL: kohi_python-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
135b74c63fdfc60c4c6cdf28beec6644c9b5bec2ebe3d941a40da1df9fd27265
|
|
| MD5 |
42d9eb502beb650e3376bc45d93bfe90
|
|
| BLAKE2b-256 |
90779c7df1e363de75e0abd91dbce70b0d6ea04a0f2c4f2c23b9753c6f7f67c1
|