tenacity
tenacity copied to clipboard
Retrying library for Python
Introduces a shim that should enable drop-in replacement for the unmaintained https://github.com/rholder/retrying project. Path towards fix for: https://github.com/jd/tenacity/issues/356 An alternative approach might be to claim the name on PyPI and...
Would the maintainers of this package be interested in obtaining the abandoned `retrying` name on PyPI? This is possible by either asking the current owner or through PEP-541. I see...
Issue #228 pointed out that it was difficult to patch the sleep function in tests. It was then fixed and now mocking `time.sleep` is straightforward. Could the same be done...
Hello! This PR tweaks all of the convenience exports in `tenacity/__init__.py` to use the `import ... as ...` form. This lets type-checkers discover those symbols under the `tenacity` module, e.g.:...
With the following simple program, running `mypy --strict` claims the methods are not part of the tenacity module. Amusingly, mypy suggests other names in the tenacity module, and if you...
Hi, I'm currently trying to implement Tenacity in a code that use a low-bandwidth communication modem to send data. Here is the pseudo-code : ``` from tenacity import retry,stop_after_delay,Retrying,stop_after_attempt import...
Similar to the existing doc extra, specify a test extra with the relevant dependencies. Since tornado is needed for the tests, move it from doc to test. This will help...
`raise RateLimitExceed` stops the program although there is a retry statement. function calls are of a class method with joblib parallel package. I could not reproduce on a minimal example....
I'm getting issues when attempting to unit test my code that's utilising tenacity and wondering if perhaps I'm using it wrong or there might be an issue the function I'm...
This change will allow both async and sync functions to be used as callable parameters for Async retries. Docs are not updated, please, inform if any other changes are needed....