Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Decorator Python Packages

Python packages with the GitHub topic decorator. Sorted by monthly downloads, with stars and forks.
smarie
makefun

Dynamically create python functions with a proper signature.

13.8M 136 19
kata198
func-timeout

Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads

5.7M 327 37
bitranox
wrapt-timeout-decorator

Python Powerful Timeout Decorator that can be used safely on classes, methods, class methods

1.6M 165 16
smarie
decopatch

python decorators made easy.

1.4M 25 5
lonelyenvoy
memoization

A powerful caching library for Python, with TTL support and multiple algorithm options.

1M 245 15
smarie
pytest-cases

Separate test code from test cases in pytest.

885K 378 44
Kemaweyan
singleton-decorator

A testable singleton decorator

404K 48 13
leshchenko1979
reretry

An easy-to-use but functional retry decorator in python

166K 25 2
python-cachier
cachier

Persistent, stale-free, local and cross-machine caching for Python functions.

160K 667 78
FelixTheC
strongtyping

Decorator which checks whether the function is called with the correct type of parameters.

118K 121 5
AhsanSheraz
pyresilience

Unified resilience patterns for Python — retry, circuit breaker, timeout, fallback, bulkhead, rate limiter, and cache in one decorator. Python's Resilience4j.

92K 102 4
ionelmc
aspectlib

An aspect-oriented programming, monkey-patch and decorators library. It is useful when changing behavior in existing code is desired. It includes tools for debugging and testing: simple mock/record and a complete capture/replay framework.

54K 134 15
gahjelle
pyplugs

Decorator based plugin architecture for Python

50K 70 3
smarie
pytest-steps

A tiny package to ease the creation of test steps with shared intermediate results/state.

39K 56 7
rominf
module-wrapper

Module wrapper Python library

38K 5 2
python-useful-helpers
logwrap

logwrap is a helper for logging in human-readable format function arguments and call result on function call

33K 14 3
rsokl
custom-inherit

A Python package that provides tools for inheriting docstrings in customizable ways.

28K 63 13
enricobacis
limit

python decorator that limits the calling rate of a function

21K 18 3
conformist-mw
django-query-counter

Count Django SQL queries and surface duplicate (N+1) and slow ones in the console — works as a decorator (management commands, tasks, views) or as middleware

20K 24 3
34j
cm-time

A simple context manager and decorator that measures time using perf_counter()

11K 1 1
galgtonold
cash-lib

A Python cache that re-runs only what changed.

9K 2 0
whisperity
unter

📟🔃 A Python module of decorators to allow base classes to selectively hijack and invert inheritance and overriding, enforcing the primacy of a base implementation even in the face of derived overriding classes

8K 0 0
karlicoss
cachew

Transparent and persistent cache/serialization powered by type hints

7K 239 5
vertti
daffy

Lightweight DataFrame validation decorators for Pandas, Polars, Modin, and PyArrow. No custom types required.

6K 60 5
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology