GrahamDumpleton/wrapt
A Python module for decorators, wrappers and monkey patching. observed · 2026-10-19
Health v2 · maintenance only
100/100
- Activity 100
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 29
- age_days: 4892
- days_rel: 7
- days_push: 2
- n_releases_24m: 18
Adoption not part of the score
2312 stars · 260 forks observed · 2026-10-19
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
wrapt is a Python module providing transparent object proxies for building function wrappers, decorators, and monkey patching utilities. It emphasizes correctness and introspection preservation, with a C extension for performance and a pure Python fallback.
Use cases
- write decorators that preserve function signatures and metadata
- create universal decorators working on functions, methods, and classes
- safely monkey patch third-party code at runtime
- build transparent object proxies for wrapping arbitrary objects
- instrument libraries like APM tracers with minimal overhead
When to choose
- you need decorators more correct and introspectable than functools.wraps allows
- you are building instrumentation, tracing, or patching libraries
- you need decorators that work uniformly across functions, methods, classmethods, and classes
When to avoid
- you only need simple decorators and functools.wraps suffices
- you want a zero-dependency pure-Python solution without C extension considerations
Facets
library · maturity stable
middleware developer-tools concurrency developer-tools programming-languages python cross-platform decorators monkey-patching object-proxy function-wrappers introspection
1 source
- readme: https://github.com/GrahamDumpleton/wrapt · fetched 2026-10-19 · 6474533e22ea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| GrahamDumpleton/wrapt | main | 100 |
For agents
markdown · JSON · MCP: product_card(name="GrahamDumpleton/wrapt")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem