{"repo":"RaptorVampire/tranq","free":true,"listed":false,"github":"https://github.com/RaptorVampire/tranq","clone":"git clone https://github.com/RaptorVampire/tranq.git","description":"Calm error handling for Python","language":"Python","stars":73,"topics":["python","error-handling","retry","decorator","async","circuit-breaker","logging","testing","mitigation","resilience"],"license":"MIT","category":"dev-tools","readme_excerpt":"🌿 tranq Calm error handling for Python – decorator-based, zero boilerplate. --- 📖 Table of Contents - Why tranq? - Installation - Quick Start - Features in Depth - Advanced Example - API Reference - Examples - Testing - Comparison - Project Structure - Contributing - License --- 🧘 Why tranq? Writing repetitive try / except blocks clutters your code and hides the business logic. tranq gives you declarative error handling with decorators, context managers, and a rich set of retry strategies – so you can focus on what your code does, not how it recovers from failures. Feature Description --- --- 🧘 Tranquil Clean, readable, and maintainable. 🔁 Smart retries Exponential, linear, Fibonacci backoff, jitter, and max delay. 🚦 Circuit Breaker Prevent cascading failures (sync & async). 🧪 Conditional retry On specific exceptions or result values. 📦 Retry groups All-or-nothing execution for multiple functions. 📊 Built‑in metrics & profiling Monitor performance and error rates. 📝 Pluggable reporters Send errors to files (JSON), Sentry, Slack, or custom destinations. 🧩 Context manager API Use tranq.retry(...) with all decorator features. 🔧 Stateful retry Persist attempt count across calls (thread/async safe). 🎭 Mock error injection Test your error handling with ease. 💉 Dependency injection Inject dependencies into decorated functions. 🌐 Global policy Set defaults once, override per function. --- 📦 Installation Requires Python 3.9 or later. For rich logging output: For develo","default_branch":null,"files":null,"tree":[],"storefront":"/r/RaptorVampire","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RaptorVampire/tranq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}