PyPI Stats
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About
Home

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.

18.7M 134 17
kata198
func-timeout

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

2.7M 328 37
lonelyenvoy
memoization

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

1.5M 246 15
smarie
decopatch

python decorators made easy.

1.4M 25 5
smarie
pytest-cases

Separate test code from test cases in pytest.

945K 373 41
bitranox
wrapt-timeout-decorator

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

759K 165 16
Kemaweyan
singleton-decorator

A testable singleton decorator

666K 48 12
python-cachier
cachier

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

295K 654 72
leshchenko1979
reretry

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

197K 25 2
FelixTheC
strongtyping

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

170K 119 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.

62K 131 14
smarie
pytest-steps

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

62K 56 7
rsokl
custom-inherit

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

41K 64 14
gahjelle
pyplugs

Decorator based plugin architecture for Python

33K 70 3
conformist-mw
django-query-counter

Simple tool to count Django db queries in the management commands and views (as decorator or middleware)

28K 24 3
rominf
module-wrapper

Module wrapper Python library

20K 5 2
python-useful-helpers
logwrap

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

20K 14 3
karlicoss
cachew

Transparent and persistent cache/serialization powered by type hints

14K 233 5
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.

13K 5 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
enricobacis
limit

python decorator that limits the calling rate of a function

9K 18 3
34j
cm-time

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

8K 1 1
vertti
daffy

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

5K 58 5
CarrotManMatt
typed-classproperties

Typed Python decorators for classproperty and cached_classproperty

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