python-redis
Port variant v15
Summary Redis database and key-value store client (3.15)
Package version 8.2.0
Homepage https://github.com/redis/redis-py
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 24 NOV 2026, 13:34:26 UTC
Port created 28 AUG 2018, 14:25:25 UTC
Subpackage Descriptions
single # redis-py The Python interface to the Redis key-value store. [CI] [docs] [MIT licensed] [pypi] [![pre-release]](https://github.com/redis/redis-py/releases) [codecov] [Installation] | [Usage] | [Advanced Topics] | [Contributing] --------------------------------------------- ## How do I Redis? [Learn for free at Redis University] [Try the Redis Cloud] [Dive in developer tutorials] [Join the Redis community] [Work at Redis] ## Installation Start a redis via docker (for Redis versions >= 8.0): ``` bash docker run -p 6379:6379 -it redis:latest ``` Start a redis via docker (for Redis versions < 8.0): ``` bash docker run -p 6379:6379 -it redis/redis-stack:latest ``` To install redis-py, simply: ``` bash $ pip install redis ``` For faster performance, install redis with hiredis support, this provides a compiled response parser, and *for most cases* requires zero code changes. By default, if hiredis >= 1.0 is available, redis-py will attempt to use it for response parsing. ``` bash $ pip install "redis[hiredis]" ``` Looking for a high-level library to handle object mapping? See [redis-om-python]! ## Supported Redis Versions The most recent version of this library supports Redis 7.2 and every later release, up to the latest stable Redis version. CI tests each of these Redis release lines. The table below highlights version compatibility of the most-recent library versions and redis versions. | Library version | Supported redis versions | |-----------------|-------------------| | 3.5.3 | <= 6.2 Family of releases | | >= 4.5.0 | Version 5.0 to 7.0 | | >= 5.0.0 | Version 5.0 to 7.4 | | >= 6.0.0 | Version 7.2 to current | ### Supported Python Versions redis-py supports every CPython version that has not reached [end of life], and PyPy. `requires-python` in `pyproject.toml` states the minimum Python version for each release. If you are on an older Python version, use the last redis-py release that supports it: | Python version | Last supporting redis-py releases | |----------------|-----------------------------------| | 3.7 | 5.0.x | | 3.8 | 6.1.x | | 3.9 | 7.0.x | | 3.10 | 8.1.x | ## Usage ### Basic Example ``` python >>> import redis >>> r = redis.Redis(host='localhost', port=6379, db=0) >>> r.set('foo', 'bar')
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Runtime (only) python-async-timeout:single:v15
Download groups
main mirror://PYPIWHL/ea/8f/98458650cca985032598a59caca0641e7889cf4d536dc12dc032bef7df47
Distribution File Information
4ff649f10fae5e7e97798fb2a84e84a0a66e98310d75cad2b5a572ce0f9f15a7 732892 python-src/redis-8.2.0-py3-none-any.whl
Ports that require python-redis:v15
python-django-redis:v15 Redis cache backend for Django (3.15)
python-django-rq:v15 Django integration of Redis Queue (3.15)
python-patchman:v15 Django based patch status monitoring tool (3.15)
python-rq:v15 Library for procesing background jobs (3.15)