PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Decorator Python Packages

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

Dynamically create python functions with a proper signature.

17.4M 135 18
kata198
func-timeout

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

8.4M 326 37
smarie
decopatch

python decorators made easy.

1.6M 25 6
bitranox
wrapt-timeout-decorator

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

1.5M 165 16
lonelyenvoy
memoization

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

1.2M 246 15
smarie
pytest-cases

Separate test code from test cases in pytest.

959K 376 40
Kemaweyan
singleton-decorator

A testable singleton decorator

597K 50 12
leshchenko1979
reretry

An easy to use, but functional decorator for retrying on exceptions.

153K 25 2
python-cachier
cachier

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

149K 661 73
FelixTheC
strongtyping

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

119K 120 5
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.

68K 132 14
smarie
pytest-steps

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

63K 56 7
rsokl
custom-inherit

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

39K 64 14
gahjelle
pyplugs

Decorator based plugin architecture for Python

31K 70 3
rominf
module-wrapper

Module wrapper Python library

27K 5 2
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

24K 24 3
CarrotManMatt
typed-classproperties

Typed Python decorators for classproperty and cached_classproperty

23K 5 1
AhsanSheraz
pyresilience

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

20K 56 0
karlicoss
cachew

Transparent and persistent cache/serialization powered by type hints

19K 234 5
python-useful-helpers
logwrap

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

19K 14 3
tanbro
redis-func-cache

A Python library that provides decorators for caching function results in Redis, supporting multiple serialization formats and caching strategies, as well as asynchronous operations.

16K 5 0
timcera
cltoolbox

Python utility package that wraps argparse to easily create a command line interface from a function.

13K 0 0
smarie
valid8

Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.

11K 32 0
34j
cm-time

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

9K 1 1
    • Data from PyPI, GitHub, ClickHouse, and BigQuery