acachecontrol
Cache-Control for aiohttp
Decision gist · record as of 2026-08-14
Yes, if you need HTTP caching in an aiohttp application and can tolerate a young, minimally-maintained library. The permissive Apache license, low install friction, and zero known vulnerabilities are in its favor. However, the aging maintenance status (200 days since last commit, 8 stars) and the author's own caveat that the library is 'still under development' with 'a lot of bugs' mean you should test thoroughly in your use case and be prepared to fork or patch if issues arise.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; aiohttp must be installed separately.
- Low friction: pure Python wheel with a single runtime dependency (aiohttp).
- Maintenance status is aging—last commit was 200 days ago and the repository has minimal stars (8)—so expect slower response to issues, though the package remains archived=false and actively released.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, with only the requirement to include a copy of the license and note any changes made.
last release 2026-01-26 (200 days) · last repo commit 2026-01-25 · 8 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 529,516 downloads/mo, #6,160 on PyPI
Alternatives
Verify before relying
import asyncio
from acachecontrol import AsyncCache, AsyncCacheControl
async def main():
cache = AsyncCache()
async with AsyncCacheControl(cache=cache) as cached_sess:
async with cached_sess.get('http://example.com') as resp:
text = await resp.text()
print(text)
asyncio.run(main())- Whether the library's stated 'under development' status and acknowledged bugs have been resolved since the last commit 200 days ago.
- Real-world performance impact of caching on typical aiohttp workloads.
- Compatibility with recent aiohttp versions beyond what the classifiers declare.
What it is and what it does
acachecontrol brings HTTP caching semantics to aiohttp, the popular async HTTP client library for Python. It wraps aiohttp sessions and automatically caches responses according to Cache-Control headers, reducing redundant network requests for cacheable content. The library is modeled after the synchronous CacheControl library for requests, adapting its logic to async/await patterns.
The package provides AsyncCache (an in-memory cache with configurable eviction) and AsyncCacheControl (a context manager that intercepts aiohttp requests and responses). You can customize both the cache backend (by implementing OrderedDict-like methods) and the request context manager. It supports Python 3.6 through 3.10 and runs on CPython and PyPy, though the project is still early and carries known bugs.
Use it for
- Reduce API call volume in async web scrapers or data-collection tools by caching responses per Cache-Control directives.
- Speed up microservices that make repeated calls to the same external APIs by avoiding network round-trips.
- Build async clients for REST APIs where caching is beneficial but the default aiohttp session does not implement it.
- Prototype or test async HTTP workflows without implementing custom caching logic.
- Extend aiohttp with standards-compliant HTTP caching for compliance-sensitive applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need HTTP caching in an aiohttp application and can tolerate a young, minimally-maintained library.
The permissive Apache license, low install friction, and zero known vulnerabilities are in its favor. However, the aging maintenance status (200 days since last commit, 8 stars) and the author's own caveat that the library is 'still under development' with 'a lot of bugs' mean you should test thoroughly in your use case and be prepared to fork or patch if issues arise.
Install
acachecontrol on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (aiohttp). Maintenance status is aging—last commit was 200 days ago and the repository has minimal stars (8)—so expect slower response to issues, though the package remains archived=false and actively released.
Requires Python 3.6 or later; aiohttp must be installed separately.
License in practice
Apache License 2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, with only the requirement to include a copy of the license and note any changes made.
Quickstart
import asyncio
from acachecontrol import AsyncCache, AsyncCacheControl
async def main():
cache = AsyncCache()
async with AsyncCacheControl(cache=cache) as cached_sess:
async with cached_sess.get('http://example.com') as resp:
text = await resp.text()
print(text)
asyncio.run(main())
Verify before relying
- Whether the library's stated 'under development' status and acknowledged bugs have been resolved since the last commit 200 days ago.
- Real-world performance impact of caching on typical aiohttp workloads.
- Compatibility with recent aiohttp versions beyond what the classifiers declare.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageaiohttp |
| Maintenance | Aging 200 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 529,516 / month, #6,160 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: acachecontrol-0.3.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aiohttp caching”
- acachecontrolAdds HTTP caching to aiohttp requests by respecting Cache-Control…
- aiohttp-client-cacheAdds transparent request caching to aiohttp.ClientSession, storing…
- aiohttp-corsAdds Cross-Origin Resource Sharing (CORS) support to aiohttp…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also CacheControl · requests-cache · aiohttp-client-cache · apeye · async-cache · aioresponses · asyncache · aiointercept · pytest-aiohttp · asyncio-throttle