$npx skillfedfor your agent

redis

Python client for Redis database and key-value store

Worth itPyPI DatabaseReleased Jul 2026268.3M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — redis-8.1.0-py3-none-any.whl
v8.1.0 · released 2026-07-30 · Python >=3.10 · 1 runtime deps: async-timeout

Yes. redis-py is the de facto standard Python Redis client, actively maintained, permissively licensed, and has minimal install friction. It is production-ready with no known vulnerabilities and strong community adoption. Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running Redis server instance (local or remote) accessible on the specified host and port; by default localhost:6379.
  • Low install friction with a single lightweight runtime dependency (async-timeout).
  • Actively maintained with a recent release (15 days ago) and strong community backing (13613 stars).

License · maintenance · safety

MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.

last release 2026-07-30 (15 days) · last repo commit 2026-08-10 · 13,613 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 268,312,026 downloads/mo, #150 on PyPI

Verify before relying

pip install redis

import redis
r = redis.Redis(host='localhost', port=6379, db=0)
r.set('foo', 'bar')
print(r.get('foo'))
  • Whether hiredis optional dependency provides measurable performance improvement for typical workloads.
  • Specific performance characteristics when using connection pools vs. single connections.
  • Whether RESP3 protocol changes (default in 8.0+) require code updates for existing applications.
Same gist for agents: .md · .json

What it is and what it does

redis-py is the standard Python interface to Redis, a widely-used in-memory key-value store. It provides both synchronous and asynchronous clients for executing Redis commands, managing connections through pooling, and handling pub/sub messaging patterns. The library exposes all out-of-the-box Redis commands using their native names (HSET, HGETALL, etc.) and supports advanced features like pipelines for batching operations, transactions via MULTI/EXEC, and pub/sub subscriptions.

The package is production-stable and actively maintained, with support for modern Python versions (3.10+) and compatibility with Redis versions 7.2 through 8.8. It includes connection pooling by default to optimize resource usage, optional hiredis integration for faster response parsing, and configurable protocol support (RESP2 vs. RESP3) to balance backward compatibility with newer protocol features.

Use it for

  • Cache frequently accessed data to reduce database load and improve application response times.
  • Implement real-time pub/sub messaging between application components or microservices.
  • Store session data or user state in a fast, in-memory store for web applications.
  • Execute batched Redis commands via pipelines to minimize network round-trips.
  • Build rate limiting or distributed locking mechanisms using Redis atomic operations.

Worth the install?

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

Worth it

Yes.

redis-py is the de facto standard Python Redis client, actively maintained, permissively licensed, and has minimal install friction. It is production-ready with no known vulnerabilities and strong community adoption. Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

Install

redis on PyPI

Before you install

Low install friction with a single lightweight runtime dependency (async-timeout). Actively maintained with a recent release (15 days ago) and strong community backing (13613 stars). Supports current Python versions (3.10+) and has been stable since its initial release in 2012.

Requires a running Redis server instance (local or remote) accessible on the specified host and port; by default localhost:6379.

License in practice

MIT license (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.

Quickstart

pip install redis

import redis
r = redis.Redis(host='localhost', port=6379, db=0)
r.set('foo', 'bar')
print(r.get('foo'))

Verify before relying

  • Whether hiredis optional dependency provides measurable performance improvement for typical workloads.
  • Specific performance characteristics when using connection pools vs. single connections.
  • Whether RESP3 protocol changes (default in 8.0+) require code updates for existing applications.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
async-timeout
MaintenanceActively maintained 15 days since the last release
Last repo commit
First released
Downloads268,312,026 / month, #150 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended 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 :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: redis-8.1.0-py3-none-any.whl

Tags

Capabilities
redis python clientredis key-value store interfaceredis database connectionasync redis clientredis command executionredis connection poolingredis pubsub messaging
Topics
cachingpub-subconnection-pooling
PyPI keywords
Redisdatabasekey-value-store

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 › “redis key-value store interface”

  • redisPython client library for connecting to and executing commands…
  • simplekvsimplekv provides a unified key-value storage API that abstracts over…
  • redisliteRedislite embeds a self-contained Redis server into a Python package,…

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

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo
pymongo Worth it
PyPI · Database · released Apr 2026

PyMongo is the official MongoDB Python driver, providing synchronous and asynchronous APIs for querying, inserting, updating, and managing MongoDB databases from Python applications.

Install it if you need to connect Python to MongoDB.

Apache-2.0compiled wheel · 3.9+
119.0Mdownloads / mo

See also aioredis · fakeredis · py-redis · redis-py-cluster · valkey · redislite · walrus · redis-cli · channels-redis · flask-redis