Skip to main content

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_key on 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


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)

Uploaded Source

Built Distribution

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

kohi_python-0.1.4-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for kohi_python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 27fcacb8dad2202ddbcea49ba7fb80952dce9eb31d50dd210e397128d89ea1ea
MD5 6e2e9b3b51273414af5631255755a567
BLAKE2b-256 de7fac7672e76a10d513fd437efe131393d7c480f650a10f9dfeba13eded488e

See more details on using hashes here.

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

Hashes for kohi_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 135b74c63fdfc60c4c6cdf28beec6644c9b5bec2ebe3d941a40da1df9fd27265
MD5 42d9eb502beb650e3376bc45d93bfe90
BLAKE2b-256 90779c7df1e363de75e0abd91dbce70b0d6ea04a0f2c4f2c23b9753c6f7f67c1

See more details on using hashes here.

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