decfunc
Creating decorators with arguments made easy. (by realsuayip)
backoff
Python library providing function decorators for configurable backoff and retry (by litl)
decfunc | backoff | |
---|---|---|
2 | 3 | |
5 | 2,654 | |
- | 0.7% | |
2.3 | 0.0 | |
over 1 year ago | 12 months ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
decfunc
Posts with mentions or reviews of decfunc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-16.
-
decfunc - a library to create decorators in a simple way, using classes
u/Rawing7 Hey, thanks to your comment, I inspected my code and found some other major problems.I was able to fix them by some refactoring. And I also realized & understood your point on writing decorators via functions. Also, If it is OK with you, I could insert your name into the contributors file.
backoff
Posts with mentions or reviews of backoff.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-11-15.
-
Show HN: Retry a command with exponential backoff and jitter (+ Starlark exprs)
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.
-
Test-Driven Development For Analytics Engineering
For these reasons, I don't attempt to follow test-driven development when writing extract-and-load processes, and instead focus on architectural simplicity and plenty of retry mechanisms like backoff and tenacity.
-
Ask HN: What are some unusual but useful Python libraries you've discovered?
I use https://github.com/litl/backoff for configurable backoff + retry
context: OpenAI API used to be super flaky back in the early days, i needed to retry my requests quite frequently and i found this
What are some alternatives?
When comparing decfunc and backoff you can also consider the following projects:
lambda-decorators - 🐍λ✨ - A collection of useful decorators for making AWS Lambda handlers
python-modules
multitasking - Non-blocking Python methods using decorators
python-guard - Guard is a fluent argument validation library that is intuitive, fast and extensible.
Deal - 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
exceptbot - Django exception logger with AI suggestions on how to fix them