skillfed

vercel-cache

Runtime cache helpers for Vercel Python applications

vercel-cache v0.7.2 1.0M downloads/30d#4,475 on PyPI
Permissive license MIT Active released

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-cache

uv

uv add vercel-cache

poetry

poetry add vercel-cache

Installing 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

vercel python cacheruntime caching vercelasync cache helpersvercel environment cachein-memory cache fallbackpython cache management
vercel-platformasync-cache

More WWW/HTTP packages