Elegant HTTP Caching for Python
Actively maintained. Last release 4 weeks ago, commits in 13 of the last 26 weeks. A safe choice.
$
pip install hishel
Hishel
Elegant HTTP Caching for Python
Hishel (հիշել, to remember in Armenian) is a modern HTTP caching library for Python. It adds caching to HTTPX, Requests and ASGI applications with minimal code changes, either by your own limits or by following the RFC 9111 specification.
✨ Features
- 🎯 RFC 9111 Mode - Optionally follow the latest HTTP caching specification
- 🔌 Easy Integration - Drop-in support for HTTPX, HTTPX2, Requests, ASGI and FastAPI
- 💾 Flexible Storage - SQLite and Redis backends, or write your own
- ⚡ High Performance - Efficient caching with minimal overhead
- 🔄 Async & Sync - Full support for both synchronous and asynchronous workflows
- 🎨 Type Safe - Fully typed with comprehensive type hints
- 🧪 Well Tested - Extensive test coverage and battle-tested
- 🎛️ Configurable - TTL, TTI and size limits, with per-request overrides
- 💨 Memory Efficient - Streaming support prevents loading large payloads into memory