GrahamDumpleton/wrapt
A Python module for decorators, wrappers and monkey patching. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 98
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 31
- age_days: 4844
- days_rel: 36
- days_push: 12
- n_releases_24m: 14
Adoption not part of the score
2295 stars · 252 forks observed · 2026-08-28
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-08-28 · 6474533e22ea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| GrahamDumpleton/wrapt | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="GrahamDumpleton/wrapt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem