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.

18.7M 135 17
kata198
func-timeout

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

2.9M 326 37
smarie
decopatch

python decorators made easy.

1.5M 25 5
lonelyenvoy
memoization

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

1.1M 247 15
smarie
pytest-cases

Separate test code from test cases in pytest.

945K 375 41
bitranox
wrapt-timeout-decorator

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

819K 165 16
Kemaweyan
singleton-decorator

A testable singleton decorator

757K 48 12
python-cachier
cachier

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

206K 655 72
leshchenko1979
reretry

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

204K 25 2
FelixTheC
strongtyping

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

169K 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.

63K 132 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.

43K 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

28K 5 2
python-useful-helpers
logwrap

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

23K 14 3
karlicoss
cachew

Transparent and persistent cache/serialization powered by type hints

16K 234 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
enricobacis
limit

python decorator that limits the calling rate of a function

10K 18 3
34j
cm-time

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

9K 1 1
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.

9K 32 0
CarrotManMatt
typed-classproperties

Typed Python decorators for classproperty and cached_classproperty

5K 5 1
Friskes
drf-spectacular-websocket

Extend websocket schema decorator for Django Channels

4K 16 2
    • Data from PyPI, GitHub, ClickHouse, and BigQuery