OSS TanbouSign in with GitHub

use synchronous, asynchronous, and cluster Redis access through one Python client

OSS scale score 302.0OSS health 100
About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
13,648
Primary language
Python
License
MIT
Repository last updated
Oct 5, 2026
On this page

Overview

redis-py is the Python client for Redis. It supports standard connections, connection pooling, asyncio, Redis Cluster, Sentinel, Pub/Sub, pipelines, and broad Redis command coverage.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Run Redis commands through standard clients and connection pools

redis.Redis exposes commands such as GET and SET, while clients use connection pools internally. Applications can share explicit ConnectionPool instances and batch commands with pipelines.

Sources: [2]

Extend the same library to asyncio, Cluster, Sentinel, and Pub/Sub

redis-py includes asyncio clients, cluster connectivity, Sentinel, and Pub/Sub. Version 8.1.0 adds asynchronous maintenance-notification handling for standalone and cluster clients.

Sources: [2][4]

Best fit

Fits Python backends that use Redis for cache, sessions, queues, or short-lived state

It is a strong fit when cache, rate limits, sessions, queue metadata, or other short-lived state belongs in Redis and both synchronous and asynchronous application code should share one client ecosystem.

Sources: [2]

Before adoption

redis-py 8.1.0 requires Python 3.10+; review RESP behavior and server compatibility

redis-py 8.1.0 requires Python 3.10 or newer, and current releases target Redis 7.2 and newer. Version 8.x uses RESP3 on the wire by default while preserving legacy Python response shapes, so new applications should choose a response-shape policy and regression-test command results during upgrades.

Sources: [2][3]

Official sources

  1. [1]redis/redis-py — GitHub repository(2026-10-06)
  2. [2]redis-py 8.1.0 — README(2026-10-06)
  3. [3]redis-py 8.1.0 — pyproject.toml(2026-10-06)
  4. [4]redis-py 8.1.0 release(2026-10-06)
  5. [5]redis-py MIT license(2026-10-06)
Supplemental curator note

redis-py is a standard client choice for Python applications using Redis for cache and short-lived state. With 8.x, explicitly review response shapes and failover behavior when upgrading existing Cluster or Sentinel deployments.

Try it in 3 steps

  1. 1

    Install redis-py 8.1.0

    Pin the reviewed stable release. Python 3.10 or newer is required.

    python -m pip install "redis==8.1.0"
  2. 2

    Start Redis on localhost

    Use the same container startup command documented in the official README and keep the verification endpoint on localhost.

    docker run --rm -p 6379:6379 redis:latest
  3. 3

    Run SET and GET

    Write and read one temporary key, then delete it after confirming connectivity.

    python - <<'PY' import redis r = redis.Redis(host='127.0.0.1', port=6379, db=0) assert r.set('oss-tanbou:redis-py', 'ok') print(r.get('oss-tanbou:redis-py')) r.delete('oss-tanbou:redis-py') PY
Check the official README

Growth

Growth trends · Last 30 days

13,648 Stars

Trend data is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • python
  • redis
  • redis-client
  • redis-cluster
  • redis-py
Stars
13,648
Forks
2,768
Watchers
313
Open issues
90
Contributors
423
Owner type
Organization
Primary language
Python
License
MIT
Repository last updated
Oct 5, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?