# Quarantine — by Aritro Saha

> Zero-dependency dead-letter queue and fault-tolerance library on PyPI & Conda-Forge. Wrap Python loops with @quarantine to isolate errors without crashing batch jobs.

Canonical: https://www.aritro.cloud/projects/quarantine
Last updated: 2026-10-26

## Project Overview
quarantine is an open-source, zero-dependency Python library that brings dead-letter queue resilience to regular loops and batch data pipelines. When processing thousands of records (e.g., CSV ingestion, scraping, API syncing), an unexpected exception at item #5,247 no longer crashes the entire multi-hour run. quarantine safely isolates the failing item, captures the error and full execution state to disk, and keeps the loop running.

## Key Engineering Features
- Zero-Crash Decorators: Wrap any sync or async function with @quarantine or iterate with shield() to set aside failures without interrupting the pipeline.
- Atomic On-Disk Isolation: Serializes failed inputs, exceptions, and full tracebacks atomically to disk (.quarantine/) without requiring external message brokers.
- Surgical Replays & Interactive Debugging: Rerun only failed items using quarantine retry or drop straight into pdb with the exact failing input using quarantine debug.
- Circuit Breakers & Sensitive Redaction: Automatic circuit breaker tripping via halt_after to prevent cascading external outages, plus built-in key/regex redaction for secrets.
- Local Web UI & Observability: Built-in CLI commands and a local web dashboard to inspect tracebacks, track recovery stats, and integrate into CI/CD pipelines.

## Technologies & Architecture
- Python 3.9+
- PyPI
- Conda-Forge
- AsyncIO
- CLI
- Dead-Letter Queue
- Fault Tolerance
- Pytest
- Hypothesis

## Verified Links & Source Code
- **GitHub Repository**: [https://github.com/halcyon-past/quarantine](https://github.com/halcyon-past/quarantine)
- **Live Website / Deployment**: [https://pypi.org/project/quarantine-py/](https://pypi.org/project/quarantine-py/)
- **Documentation**: [https://quarantine-py.aritro.cloud](https://quarantine-py.aritro.cloud)
- **PyPI Package**: [https://pypi.org/project/quarantine-py/](https://pypi.org/project/quarantine-py/)

## Related
- [All Featured Projects](https://www.aritro.cloud/#projects)
- [Structurify](https://www.aritro.cloud/projects/structurify)
- [Byakugan Scan](https://www.aritro.cloud/projects/byakugan-scan)
- [PAWsitive](https://www.aritro.cloud/projects/pawsitive)
