$npx skillfedfor your agent

upstash-redis

Serverless Redis SDK from Upstash

Worth itPyPI LibrariesReleased Mar 2026814.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — upstash_redis-1.7.0-py3-none-any.whl
v1.7.0 · released 2026-03-18 · Python <4.0,>=3.8 · 1 runtime deps: httpx

Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction (one dependency), and fills a genuine gap for serverless Python applications needing Redis. The MIT license imposes no restrictions. Install it if you're building on serverless platforms and need Redis caching or data structures; skip it if you have persistent TCP connectivity and prefer the lower latency of direct Redis connections.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN environment variables or explicit url/token parameters; an active Upstash Redis database is required.
  • Low friction: single runtime dependency (httpx), pure Python wheel, actively maintained with recent commits and regular updates under Upstash Professional Support.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.

last release 2026-03-18 (149 days) · last repo commit 2026-03-18 · 69 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 814,749 downloads/mo, #4,991 on PyPI

Verify before relying

pip install upstash-redis

from upstash_redis import Redis

redis = Redis.from_env()
redis.set("key", "value")
print(redis.get("key"))
  • Performance characteristics compared to TCP-based Redis clients in non-serverless environments.
  • Whether the retry mechanism (default: one retry after 3 seconds) is configurable for specific use cases.
  • Telemetry data collection scope and whether it impacts privacy-sensitive deployments.
Same gist for agents: .md · .json

What it is and what it does

upstash-redis is a Python client library that communicates with Redis through HTTP requests to the Upstash REST API rather than establishing direct TCP connections. It's purpose-built for serverless platforms where persistent TCP connections are impractical or unavailable, such as AWS Lambda, Vercel, and Google Cloud Functions. The library provides both synchronous and asynchronous interfaces, supporting standard Redis commands including streams, pipelines, transactions, and custom commands.

The package depends only on httpx for HTTP communication and requires Python 3.8 or later. It handles connection credentials via environment variables or explicit parameters, includes automatic retry logic with configurable intervals, and supports optional base64 encoding for data serialization. The library is in GA stage and receives regular maintenance and bug fixes from Upstash's professional support team.

Use it for

  • Cache layer in AWS Lambda functions where TCP connections are ephemeral or cost-prohibitive.
  • Session storage in Vercel serverless functions using Redis Streams for real-time data handling.
  • Distributed task queues in Google Cloud Functions leveraging Redis pipelines and transactions.
  • Rate limiting and counters in serverless APIs without managing persistent connection pools.
  • Real-time event processing with Redis Streams consumer groups in containerized serverless environments.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with minimal friction (one dependency), and fills a genuine gap for serverless Python applications needing Redis. The MIT license imposes no restrictions. Install it if you're building on serverless platforms and need Redis caching or data structures; skip it if you have persistent TCP connectivity and prefer the lower latency of direct Redis connections.

Install

upstash-redis on PyPI

Before you install

Low friction: single runtime dependency (httpx), pure Python wheel, actively maintained with recent commits and regular updates under Upstash Professional Support.

Requires UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN environment variables or explicit url/token parameters; an active Upstash Redis database is required.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.

Quickstart

pip install upstash-redis

from upstash_redis import Redis

redis = Redis.from_env()
redis.set("key", "value")
print(redis.get("key"))

Verify before relying

  • Performance characteristics compared to TCP-based Redis clients in non-serverless environments.
  • Whether the retry mechanism (default: one retry after 3 seconds) is configurable for specific use cases.
  • Telemetry data collection scope and whether it impacts privacy-sensitive deployments.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
httpx
MaintenanceActively maintained 149 days since the last release
Last repo commit
First released
Downloads814,749 / month, #4,991 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: DatabaseTopic :: Database :: Front-EndsTopic :: Software Development :: Libraries

Evidence: upstash_redis-1.7.0-py3-none-any.whl

Tags

Capabilities
serverless redis clienthttp redis pythonupstash redis sdkconnectionless redislambda redis clientrest api redisredis without tcp
Topics
serverlessrest-apiasync-support
PyPI keywords
Upstash RedisServerless Redis

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 › “serverless redis client”

  • upstash-redisHTTP-based Redis client for Python that connects to Upstash Redis via…
  • upstash-ratelimitProvides connectionless rate limiting for Python applications in…
  • tensorizerSerializes and deserializes PyTorch modules and tensors to/from HTTP,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also qstash · upstash-ratelimit · upstash-vector · redis-cli · powerbot-client · aioredis · pydocket · redis-py-cluster · fakeredis · redis