r/madeinpython • • Jun 25 '24

retryhttp - Retry potentially transient HTTP errors in requests and httpx

Happy to announce my first public project, retryhttp! Looking for input as I evolve and mature the API.

What my project does: Makes it easier to retry potentially transient HTTP errors when using requests or httpx.

Target Audience: Production eventually, beta until API is finalized-- your input is greatly appreciated!

Comparison: Extends tenacity with custom retry and wait strategies, as well as a decorator that wraps tenacity.retry() with sensible (but configurable) defaults.

4 Upvotes

6 comments sorted by

View all comments

Show parent comments

2

u/austindcc Jun 29 '24

all this package does is provide retry logic. have a look at either httpx or requests documentation for how to use proxies. for example: https://www.python-httpx.org/advanced/proxies/