--- id: hishel version: "1.3.1" license: unclear license_treatment: permissive maintenance: active --- # hishel — Elegant HTTP Caching for Python License: permissive · Maintenance: active · Downloads: 5.8M/mo ## What it is and what it does Hishel is an HTTP caching library that brings RFC 9111-compliant caching to Python HTTP clients. It integrates with HTTPX, Requests, ASGI applications, and FastAPI, allowing you to cache HTTP responses with minimal code changes. The library supports both synchronous and asynchronous workflows, making it suitable for a range of Python applications from simple scripts to complex async services. The package uses msgpack for serialization and provides SQLite as its storage backend. It includes configurable caching policies, streaming support to avoid loading large payloads into memory, and specialized support for caching GraphQL queries. Hishel is actively maintained, supports Python 3.10 through 3.14, and carries no known security vulnerabilities. Use it for: - Cache HTTP responses from external APIs in web applications to reduce latency and bandwidth. - Integrate caching into FastAPI or ASGI applications to improve performance of downstream requests. - Cache GraphQL query results with body-sensitive content matching to avoid redundant server calls. - Add transparent caching to existing HTTPX or Requests-based clients with minimal code changes. - Build async services that need efficient HTTP response caching without manual cache management. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Hishel is an HTTP caching library for Python that implements RFC 9111 specifications, providing RFC-compliant caching integration for popular HTTP clients like HTTPX, Requests, ASGI, and FastAPI with both synchronous and asynchronous support. Yes. Hishel is a well-maintained, actively developed library with low install friction, permissive licensing, and no known vulnerabilities. It fills a clear need for RFC 9111-compliant HTTP caching in Python. The recent release cycle, active repository, and support for modern Python versions (3.10–3.14) make it production-ready. Install it if you need HTTP caching for HTTPX, Requests, FastAPI, or ASGI applications. ## Install pip install hishel uv add hishel poetry add hishel ## Installing hishel Before you install: Low install friction with only two runtime dependencies (msgpack and typing-extensions). The package is actively maintained with a recent release (4 days old) and steady repository activity, making it reliable for production use. License in practice: Licensed under a permissive BSD license, allowing use in commercial and proprietary projects with minimal restrictions. Quickstart: pip install hishel import hishel from hishel import CacheConnectionPool # Use with HTTPX or other supported HTTP clients with CacheConnectionPool() as pool: response = pool.request('GET', 'https://example.com') Requires Python 3.10 or later; SQLite backend is the current storage option. Verify before relying: - Specific performance benchmarks or overhead metrics compared to uncached requests. - Details on which ASGI frameworks (Starlette, Litestar, BlackSheep) are officially tested. - Cache eviction policies and memory limits for long-running applications. - Whether GraphQL caching handles mutations and subscriptions or queries only. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 5.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags HTTP caching library Python, RFC 9111 compliant caching, HTTPX Requests caching, async HTTP cache, FastAPI ASGI caching, SQLite HTTP cache, GraphQL query caching, http-caching, rfc-9111, async-support [View on SkillFed](https://skillfed.io/packages/hishel) · [View on PyPI](https://pypi.org/project/hishel/)