Skip to main content

obskitpy

obskitpy

Observability (OpenTelemetry → Elasticsearch → Kibana) for any Python project, through a CLI.

Full documentation at the repository root: docs/ (English, with a Portuguese copy in docs/pt-BR/). This file is a summary. The CLI messages and dashboards are currently in Brazilian Portuguese.

Getting started (2 commands)

uv add "obskitpy[requests]"      # or pip install; the 'requests' extra adds automatic HTTP spans
cd my-project
obskitpy init                   # creates observability/ (stack + base dashboard); optional --service NAME
obskitpy up                     # starts ES + Kibana + Collector and creates the dashboard

In your code:

import logging, obskitpy

log = logging.getLogger(__name__)
shutdown = obskitpy.setup("my-service")      # logs + traces + metrics over OTLP (localhost:4317)

@obskitpy.traced()                            # one span per call, marks an error if the exception propagates
def process(item): ...

try:
    process(x)
except Exception:
    log.exception("failed")                 # comes out with error.type, error.origin and error.chain

shutdown()                                  # flushes pending data

Custom metrics: obskitpy.meter().create_counter("orders.processed") (OpenTelemetry API).

Commands

Command What it does
obskitpy init [--service N] [--kibana-port P ...] creates observability/ (compose, collector, dashboard.ndjson, .env)
obskitpy up starts the stack, waits until it is healthy and applies the dashboard
obskitpy down [-v] brings it down (-v deletes the data)
obskitpy status / obskitpy open containers + link / opens the dashboard
obskitpy dashboard export writes the dashboard as it is in Kibana to the file
obskitpy dashboard apply imports observability/dashboard.ndjson into Kibana

All of them accept --dir (default observability).

Evolving the dashboard

  1. obskitpy up already creates the <service>-observability dashboard with the basic panels: logs, errors, runs (traces), span duration, errors by type/origin and an error list with trace_id.
  2. Edit it in Kibana (add panels, metrics from your domain, filters).
  3. obskitpy dashboard export and version observability/dashboard.ndjson in git.
  4. On another machine/CI: obskitpy up (or obskitpy dashboard apply) recreates everything.

The panels filter by resource.attributes.service.name, so several services can share one stack (use the same --dir/ports) or have one each (use different ports in init).

Notes

  • Local environment: Elasticsearch security off, ports on 127.0.0.1 only.
  • The data takes a few seconds to become searchable after the first send.
  • Colima/Docker: docker compose must be able to see the project folder (on Colima, only $HOME is mounted by default).
  • Requires Docker with the Compose v2 plugin.

Metadata

Release files for obskitpy 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obskitpy 1.0.0
File Size Uploaded Provenance Actions
obskitpy-1.0.0.tar.gz 664.0 kB With provenance Details for obskitpy-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for obskitpy 1.0.0
File Interpreter ABI Platform Actions
obskitpy-1.0.0-py3-none-any.whl Python 3 none any Details for obskitpy-1.0.0-py3-none-any.whl

Total release size: 1.4 MB

Release files / obskitpy-1.0.0.tar.gz

Download URL obskitpy-1.0.0.tar.gz
Size 664.0 kB
Tags Source
SHA-256 checksum
How to use checksums
74c25cbb736d4a096e763b1c2b73f2d46d181131b6b99cb72897d8214b424a1b
BLAKE2b-256 checksum
How to use checksums
57d657d29afab1ae9b2ad523278e1f2c70f59bdb85b785e6292abfc961c5e9f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / obskitpy-1.0.0-py3-none-any.whl

Download URL obskitpy-1.0.0-py3-none-any.whl
Size 687.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e1c4c4b26f26c7a71322a5509043f75fae8e03b34248a4464d8b57013aefb8
BLAKE2b-256 checksum
How to use checksums
7ca72bd3461201a8eefa580a978d125efa1cb4f1926711fcf3d8c4a4ba8a5196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for obskitpy 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for obskitpy-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page