wrapture
A Python monkey-patching library developed by Graham Dumpleton that provides unified support for both testing and observability use cases. It offers function wrapping, runtime instrumentation, OpenTelemetry export, and zero-code tracing capabilities.
Timeline (last 90 days)
wrapture is a Python monkey patching library launched by Graham Dumpleton.
wrapture serves both testing and observability scenarios simultaneously, which is the fundamental distinction that sets it apart from unittest.mock.
wrapture was first released on August 31.
wrapture can complete configuration and tracing solely by writing TOML files, without modifying any Python code.
wrapture supports exporting tracing data to OpenTelemetry.
wrapture can monkey patch attributes, dictionaries, and generators, going beyond callable objects.
wrapture is currently still in the alpha stage.
Simon Willison described wrapture as a "Swiss Army knife" style toolkit, believing it deserves more attention.
All Facts (7)
wrapture can complete configuration and tracing solely by writing TOML files, without modifying any Python code.
50%Unverifiedwrapture serves both testing and observability scenarios simultaneously, which is the fundamental distinction that sets it apart from unittest.mock.
50%UnverifiedSimon Willison described wrapture as a "Swiss Army knife" style toolkit, believing it deserves more attention.
50%Unverifiedwrapture is a Python monkey patching library launched by Graham Dumpleton.
50%Unverifiedwrapture supports exporting tracing data to OpenTelemetry.
50%Unverifiedwrapture can monkey patch attributes, dictionaries, and generators, going beyond callable objects.
50%Unverifiedwrapture was first released on August 31.
50%