vercel-cache
Runtime cache helpers for Vercel Python applications
What it is and what it does
vercel-cache is a lightweight caching library designed specifically for Python applications running on Vercel's platform. It exposes a simple API for both synchronous and asynchronous code to access runtime cache, abstracting away the complexity of Vercel's environment-based caching setup. When Vercel's cache environment variables are not available—such as during local development or in other deployment contexts—the package automatically falls back to an in-memory cache, ensuring your code doesn't break in different environments.
The package is built on top of httpx, vercel-headers, and vercel-internal-telemetry, keeping dependencies minimal. It targets modern Python (3.10+) and maintains an active release cycle, suggesting ongoing support for Vercel's platform changes.
Use it for:
- Cache API responses or computed data in Vercel-deployed Python applications to reduce latency and external API calls.
- Use async caching in high-concurrency serverless functions to improve throughput without blocking.
- Develop locally with the same caching API that works in production, relying on in-memory fallback during development.
- Store session data or temporary computation results across function invocations within Vercel's runtime constraints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides runtime cache helpers for Vercel Python applications, supporting both synchronous and asynchronous code with automatic fallback to in-memory caching when environment variables are unavailable.
Yes, if you are building Python applications on Vercel. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem—providing a unified caching interface that works both in Vercel's managed environment and during local development. No known security vulnerabilities. Install it if you need caching in a Vercel Python project; skip it if you are not deploying to Vercel.
Install
vercel-cache on PyPI
pip
pip install vercel-cacheuv
uv add vercel-cachepoetry
poetry add vercel-cacheInstalling vercel-cache
Before you install
Active maintenance with a recent release cycle (6 days since last update). Low install friction with only three runtime dependencies (httpx, vercel-headers, vercel-internal-telemetry), all distributed as wheels.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install vercel-cache
from vercel.cache import get_cache
cache = get_cache()
await cache.get('key')
Requires Python 3.10 or later.
Verify before relying
- Whether cache operations work correctly when Vercel environment variables are absent (in-memory fallback behavior not detailed).
- Performance characteristics and memory limits of the in-memory fallback cache.
- API surface and available cache methods beyond get() and aio.get_cache().
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — httpx, vercel-headers, vercel-internal-telemetry |
| Maintenance | actively maintained — 6 days since the last release |
| First released | |
| Downloads | 1,026,984/month — #4,475 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: vercel_cache-0.7.2-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
vercelPython SDK for Vercel that provides modules for…
permissive · top 5,000 on PyPI
asyncacheProvides decorator-based caching for async…
permissive · top 5,000 on PyPI
vercel-headersRegisters and exposes request headers for…
permissive · top 5,000 on PyPI
pylruProvides a pure-Python LRU (least recently…
permissive · top 15,000 on PyPI
py-memoizeCaching library for async Python applications…
permissive · top 15,000 on PyPI
cachettlcachettl provides LRU TTL cache decorators for…
permissive · top 15,000 on PyPI
onecacheOneCache provides LRU-based caching decorators…
permissive · top 15,000 on PyPI
charmcraftcacheAccelerates charmcraft builds by…
unclear · top 15,000 on PyPI
purgatoryPurgatory implements the circuit breaker…
permissive · top 15,000 on PyPI
runwareClient library for the Runware inference API,…
permissive · top 5,000 on PyPI