Simple SDK

python — app.py
Python

Install

$ pip install skopos-python

Usage

# install via pip
import skopos
# initialize once at startup
skopos.init(api_key="sk_live_8f3a...c92e", service="api")
def handle_payment(order_id: str, amount: int):
skopos.info("Processing payment", {
"order_id": order_id,
"amount_cents": amount,
})
try:
charge = stripe.Charge.create(amount=amount)
return charge
except StripeError as e:
skopos.error("Payment failed", {
"order_id": order_id,
"stripe_code": e.code,
})
raise

Built for production, designed for developers

Zero configuration

One init call. No env files, no service registration, no dashboards to wire up. Send your first log in under 60 seconds.

Async batching

Logs are batched up to 100 per request and flushed every 2 seconds. Your hot path stays hot — never blocks on the network.

Automatic retries

On transient failures, batches are re-queued and retried. You never lose a log because of a network blip.

Structured metadata

Attach any JSON metadata to every log. Filter and query on it later from the dashboard.

Thread-safe queue

Concurrent producers, single async flusher. Safe to call from any thread, coroutine, or worker.

No dependencies

Python SDK uses only stdlib. Node SDK uses native fetch. No transitive supply-chain risk, no version conflicts.

← Back to features