Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.224s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.194s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
retry
✓ from the_retry import retry
Package name uses hyphens on PyPI but underscore in import
AsyncRetryable
✓ from the_retry import AsyncRetryable
✗ from the_retry.async_retry import AsyncRetryable
AsyncRetryable is directly available from the_retry, not a submodule
Quickstart: basic usage of the retry decorator with sync function.
from the_retry import retry
import os
@retry(max_retries=3, delay=1, backoff=2, exceptions=(ConnectionError, TimeoutError))
def fetch_data(url: str) -> str:
return "data"
result = fetch_data("https://example.com")
print(result)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'the_retry'
Package installed with pip but import uses hyphens or wrong name.
fixRun `pip install the-retry` and import as `from the_retry import retry`
TypeError: retry() got an unexpected keyword argument 'retry_count'
Deprecated parameter `retry_count` used in newer version.
fixReplace `retry_count` with `max_retries`
AttributeError: module 'the_retry' has no attribute 'async_retry'
Trying to import a non-existent submodule.
fixImport AsyncRetryable directly: `from the_retry import AsyncRetryable`
Upgrade
Version history
0.1.1latest on PyPI · released Jan 16, 2023
Audit
Dependencies
No dependency data recorded yet.