🔮 पुनर्जन्म
punarjanma
Upanishads / Bhagavad Gita 2.20
Rebirth — the eternal cycle
Resilient retry strategies for LLM agents: exponential backoff, jitter, circuit-breaker patterns. Zero dependencies.
Formerly agent-retry — Part of the Vedic Arsenal: 100 production-grade Python libraries for LLM agents, each named from the Vedas, Puranas, and Mahakavyas.
The Vedic Principle
In the Bhagavad Gita, Lord Krishna reveals to Arjuna: "na jāyate mriyate vā kadācin" — the soul is never born, never dies. It returns, again and again, until liberation.
punarjanma brings this eternal principle to LLM agent engineering. When your API call fails, when the model returns garbage, when the network drops — the agent returns. Exponential backoff is not failure. It is the dharmic cycle of persistence, each attempt purified by the lessons of the last.
Just as the soul accumulates wisdom across lifetimes to finally achieve moksha, your agent accumulates context across retries to finally achieve its goal. The dead letter queue is not defeat — it is the end of a cycle, the completion of karma.
How It Works
flowchart LR
A[LLM Call] --> B{Success?}
B -- Yes --> C[Return Result]
B -- No --> D[punarjanma]
D --> E{Attempts < Max?}
E -- Yes --> F[Exponential Backoff]
F --> A
E -- No --> G[Dead Letter Queue]
style D fill:#6b21a8,color:#fff
Installation
pip install punarjanma
Or from source:
git clone https://github.com/darshjme/punarjanma.git
cd punarjanma && pip install -e .
Quick Start
from punarjanma import *
# See examples/ for full usage
The Vedic Arsenal
punarjanma is one of 100 libraries in darshjme/arsenal — each named from sacred Indian literature:
| Sanskrit Name | Source | Technical Function |
|---|---|---|
punarjanma |
Upanishads / Bhagavad Gita 2.20 | Rebirth — the eternal cycle |
Each library solves one problem. Zero external dependencies. Pure Python 3.8+.
Contributing
- Fork the repo
- Create feature branch (
git checkout -b fix/your-fix) - Add tests — zero dependencies only
- Open a PR
🔮 Built by Darshankumar Joshi · @thedarshanjoshi
"कर्मण्येवाधिकारस्ते मा फलेषु कदाचन" Your right is to action alone, never to its fruits. — Bhagavad Gita 2.47
Metadata
Release files for agent-retry 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_retry-0.1.0.tar.gz | 1.6 MB | Without provenance | Details for agent_retry-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_retry-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agent_retry-0.1.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / agent_retry-0.1.0.tar.gz
| Download URL | agent_retry-0.1.0.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9f98b225d764cd20902bdbe7f38e696af14513e202482cc2c1885fb92ea3804
|
|
BLAKE2b-256 checksum How to use checksums |
898532ad0135dba7da363f23b52468a3762f0ca01205be861d38b5bea131f3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / agent_retry-0.1.0-py3-none-any.whl
| Download URL | agent_retry-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bc58cf0ff1983be6c488851cadddc57addc106c5c0a09ef9e9ba4ab98b4ceea
|
|
BLAKE2b-256 checksum How to use checksums |
0e662e256ed193aa17bd1e0e7cf719027237c3121e8b8e2f4835cf9a6040aba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for agent-retry 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.