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.3.tar.gz (9.0 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.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for kohi_python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c1a0a28bbe8037690662ab3ee2072b115b3d4322e90d03eaf8b4497699865a19
MD5 d156eb72db978faa193b4a865201c85d
BLAKE2b-256 fcfaec5db866ae2a981f1bc9be9f7e05eba41065d20ef5bf20e13e11bd6e3f4b

See more details on using hashes here.

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

Hashes for kohi_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 769605dfba87aedb93136b8653b80ff8cd82151a373a808ccef0612bae124f9d
MD5 cf4f80ce39b368f054d39c8a9c721844
BLAKE2b-256 fbf19f53802b05628752b79916a01af5df3d73b4627bf6036d88c3254ade8526

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