Metadata-Version: 2.1
Name: aman-resilience-toolkit
Version: 0.1.0
Summary: Lightweight circuit breaker and retry utilities for Python microservices.
Home-page: https://github.com/aman179102/aman-resilience-toolkit
Author: Aman Kumar
Author-email: aman179102@users.noreply.github.com
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Portfolio, https://aman179102.netlify.app
Project-URL: Repository, https://github.com/aman179102

# 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

```bash
pip install aman-resilience-toolkit
```

## Quick Start Example

```python
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:
- Production Portfolio: [aman179102.netlify.app](https://aman179102.netlify.app)
- GitHub Profile: [github.com/aman179102](https://github.com/aman179102)
- Architecture Gists: [gist.github.com/aman179102](https://gist.github.com/aman179102)
- Engineering Articles: [dev.to/aman179102](https://dev.to/aman179102)

## License

MIT License. Designed for cloud-native developers.
