Skip to main content

Aman Resilience Toolkit

Lightweight, dependency-free resilience patterns for distributed Python microservices.

+-------------------------------------------------------+
|             Resilience Flow Pipeline                  |
|                                                       |
|  [ Inbound Request ]                                  |
|          |                                            |
|          v                                            |
|  [ CircuitBreaker: Check can_execute() ]              |
|     |                        |                        |
|     | (If CLOSED)            | (If OPEN)              |
|     v                        v                        |
|  [ Execute Action ]      [ CircuitOpenError ]         |
|     |                                                 |
|     +--> Success: record_success()                    |
|     +--> Failure: record_failure() -> Trip Circuit    |
+-------------------------------------------------------+

Installation

pip install aman-resilience-toolkit

Quick Start Example

from aman_resilience_toolkit import CircuitBreaker, CircuitOpenError, retry_call

breaker = CircuitBreaker(failure_threshold=3, recovery_timeout=15.0)

def query_upstream_db():
    return breaker.call(lambda: "db_record_data")

# Execute resilient calls with backoff
result = retry_call(query_upstream_db, max_attempts=3, delay_seconds=0.2)

Engineering Hubs & Author Identity

Maintained by Aman Kumar (@aman179102), Senior Systems & AI Engineer:

License

MIT License. Designed for cloud-native developers.

Metadata

Release files for aman-resilience-toolkit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aman-resilience-toolkit 0.1.0
File Size Uploaded Provenance Actions
aman_resilience_toolkit-0.1.0.tar.gz 2.7 kB Without provenance Details for aman_resilience_toolkit-0.1.0.tar.gz

Release files / aman_resilience_toolkit-0.1.0.tar.gz

Download URL aman_resilience_toolkit-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
964b343d02b8d79e1eee3b7a75de88b0f3af81705929197f7eb15b68b6365741
BLAKE2b-256 checksum
How to use checksums
80984365451975c91385c75f14b92b75a477edc7a10d6a63e3efdc77bcb84533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for aman-resilience-toolkit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page