Python Decorators

Open-source Python projects categorized as Decorators

Top 20 Python Decorator Projects

  1. backoff

    Python library providing function decorators for configurable backoff and retry (by litl)

    Project mention: Show HN: Retry a command with exponential backoff and jitter (+ Starlark exprs) | news.ycombinator.com | 2024-11-15

    backoff is good, too: https://github.com/litl/backoff

    I moved away from tenacity because of type-checking issues. I might check out stamina next time.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. httpretty

    Intercept HTTP requests at the Python socket level. Fakes the whole socket module (by gabrielfalcao)

  4. Deal

    🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.

  5. Cachier

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

  6. enforce

    Python 3.5+ runtime type checking for integration testing and data validation

  7. lambda-decorators

    🐍λ✨ - A collection of useful decorators for making AWS Lambda handlers

  8. multitasking

    Non-blocking Python methods using decorators

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. stupid-python-tricks

    Stupid Python tricks.

  11. fastapi-class

    provides a class-based View decorator to help reduce the amount of boilerplate necessary when developing related routes. ✨🚀

  12. drf-api-action

    drf-api-action elevates Django Rest Framework testing with the action_api fixture, simplifying REST endpoint testing to a seamless, function-like experience.

  13. paprika

    Paprika is a python library that reduces boilerplate. Heavily inspired by Project Lombok.

  14. polog

    Логгер нового поколения

  15. autothread

    Parallelization in python made easy

  16. py-cachify

    Caching and distributed locks in your applications with just one or two lines. Easy to learn. Fast to code.

    Project mention: Py-cachify: Caching and locks in your Python apps with just a few lines | news.ycombinator.com | 2024-11-28
  17. deczoo

    A Zoo for decorators

  18. DecoRouter

    FastAPI style routing for starlette

  19. pyeventbus

    Python Eventbus

  20. penguin

    A lightweight, customizable stopwatch decorator (by espitiaandres)

  21. decfunc

    Creating decorators with arguments made easy.

  22. log_call

    library to log function or method calls, this can be used in middleware to fetch results from a server.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Decorators discussion

Log in or Post with

Python Decorators related posts

  • Generate Class & Decorators for your FastAPI project ✨

    1 project | /r/FastAPI | 10 Oct 2021
  • Python Role System

    1 project | news.ycombinator.com | 3 Jul 2021
  • How would you write a weird fizzbuzz?

    1 project | /r/learnpython | 30 May 2021

Index

What are some of the best open-source Decorator projects in Python? This list will help you:

# Project Stars
1 backoff 2,629
2 httpretty 2,120
3 Deal 769
4 Cachier 584
5 enforce 543
6 lambda-decorators 249
7 multitasking 201
8 stupid-python-tricks 144
9 fastapi-class 111
10 drf-api-action 100
11 paprika 81
12 polog 62
13 autothread 35
14 py-cachify 30
15 deczoo 25
16 DecoRouter 22
17 pyeventbus 18
18 penguin 9
19 decfunc 5
20 log_call 1

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Python is
the 2nd most popular programming language
based on number of references?