python-redis
Port variant v14
Summary Redis database and key-value store client (3.14)
Package version 7.1.0
Homepage https://github.com/redis/redis-py
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 NOV 2025, 20:49:22 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] --------------------------------------------- **Note:** redis-py 5.0 is the last version of redis-py that supports Python 3.7, as it has reached [end of life]. redis-py 5.1 supports Python 3.8+.
**Note:** redis-py 6.1.0 is the last version of redis-py that supports Python 3.8, as it has reached [end of life]. redis-py 6.2.0 supports Python 3.9+. **Note:** redis-py 7.0.1 is the last version of redis-py that supports Python 3.9, as it has reached [end of life]. redis-py 7.1.0 supports Python 3.10+. --------------------------------------------- ## 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 version [7.2], [7.4], [8.0] and [8.2]. 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 | ## Usage ### Basic Example ``` python >>> import redis >>> r = redis.Redis(host='localhost', port=6379, db=0) >>> r.set('foo', 'bar') True >>> r.get('foo') b'bar' ``` The above code connects to localhost on port 6379, sets a value in Redis, and retrieves it. All responses are returned as bytes in Python, to receive
Configuration Switches (platform-specific settings discarded)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Runtime (only) python-async-timeout:single:v14
Download groups
main mirror://PYPIWHL/89/f0/8956f8a86b20d7bb9d6ac0187cf4cd54d8065bc9a1a09eb8011d4d326596
Distribution File Information
23c52b208f92b56103e17c5d06bdc1a6c2c0b3106583985a76a18f83b265de2b 354159 python-src/redis-7.1.0-py3-none-any.whl
Ports that require python-redis:v14
python-django-redis:v14 Redis cache backend for Django (3.14)
python-django-rq:v14 Django integration of Redis Queue (3.14)
python-rq:v14 Library for procesing background jobs (3.14)