Skip to content

Add pyresilience - #3418

Open
AhsanSheraz wants to merge 2 commits into
vinta:masterfrom
AhsanSheraz:add-pyresilience-1
Open

AhsanSheraz wants to merge 2 commits into
vinta:masterfrom
AhsanSheraz:add-pyresilience-1

Conversation

@AhsanSheraz

Copy link
Copy Markdown

Project

pyresilience

Resubmission of #3209, which was closed on 2026-06-24 because the repository was 3 months old and had 54 stars. Both points have changed since then (see below).

Checklist

  • I read CONTRIBUTING.md - awesome-python is a shortlist, not a catalog
  • One project per PR
  • PR title format: Add project-name
  • Entry format: - [pypi-name](https://github.com/owner/repo) - Description ending with period.
  • Display name is the PyPI package name
  • Placed in an existing use case (new sections and subcategories are maintainer-only)
  • Meets all Quality Requirements: active, stable, documented, at least 1 month old

What changed since #3209

#3209 (June 2026) Now
Repository age 3 months 8 months (created 2026-03-18)
GitHub stars 54 102
Latest release v0.4.0 v0.5.0 (2026-11-14)
PyPI downloads per day ~1,000 ~3,800 (2026-11-27)
PyPI downloads, last month 18,309 (June) 93,340 (last 30 days)

Quality Requirements:

  • Serves Python developers: a library used inside Python services to wrap calls to HTTP APIs, databases, queues and LLM APIs.
  • Active: last commit 2026-11-14.
  • Stable: 11 PyPI releases up to v0.5.0, CI on Linux, macOS and Windows, branch coverage gate of 95%, mypy --strict.
  • Documented: README with examples, full docs at https://pyresilience.readthedocs.io.
  • Established: 8 months old.

Which Tier

  • Obvious choice
  • Challenger

Explain:

The list has no fault-tolerance use case, so this goes under Miscellaneous rather than a new section. pyresilience combines retry, circuit breaker, timeout, fallback, bulkhead, rate limiter and result cache behind one @resilient() decorator that works for both sync and async functions, with zero runtime dependencies. The patterns share state (for example, an open circuit stops further retries), which is hard to get right when combining separate libraries such as tenacity and pybreaker.

Adoption trajectory, monthly PyPI downloads (pypistats, without mirrors):

Month Downloads
2026-06 18,309
2026-07 32,522
2026-08 39,919
2026-09 56,663
2026-10 75,551
2026-11 (27 days) 86,517

Downloads have grown every month and are up about 4.7x since June.

Displacement

Miscellaneous holds 2 entries, so it is not at its cap and nothing is displaced.

@AhsanSheraz

Copy link
Copy Markdown
Author

Hey @JinyangWang27 & @vinta
Hope you are doing well. Can you take a look here?
Thank you

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant