wrapture

Patch, test and trace Python without changing the code

A Python library that attaches bindings to arbitrary call sites without modifying the code being observed, then does something useful with what flows through them. A sibling of wrapt, in beta ahead of 1.0.

Trade-offs

  • It builds on the safe monkey-patching machinery of wrapt instead of its own.
  • It is a toolkit, where APM agents are all-or-nothing products.

Q&A1

It is in beta ahead of 1.0.0, with pre-releases published to PyPI.

Reviews

Loading reviews

    More in Testing

    See all 19 →
    • MockNest ServerlessWireMock-compatible API mocking in an AWS account
    • VayuAn API client and native load tester in one local desktop app
    • KatesPerformance, chaos and security testing for Kafka on Kubernetes
    • AgentLeakPrivacy-leakage testing for AI agents across every execution channel
    • KiiraType-checks the TypeScript code fences in Markdown against the real project
    • KhaosKafka traffic generator that reproduces failures on demand

    More in Observability

    See all 33 →
    • cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse
    • rocketplaneIOSelf-hosted Kubernetes observability with transaction-gated agent actions
    • agent-traceSession recorder and replay tool for coding agents
    • QueueScopeNative macOS dashboard for BullMQ queues on Redis
    • NerdlogMulti-host TUI log viewer with a timeline histogram and no central server
    • duckdb-otlpOpenTelemetry ingest and SQL queries in DuckDB

    More in Python

    See all 162 →
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
    • Active GraphEvent-sourced graph runtime for long-running, auditable agents
    • SnitchPer-app network monitor and outbound firewall for the desktop