Python client for Redis

Learn how to build with Redis and Python

Connect your Python application to a Redis database using the redis-py client library.

Overview

redis-py is the recommended Python client for Redis, providing a comprehensive interface for all Redis commands and features. It offers both synchronous and asynchronous APIs, making it suitable for a wide range of Python applications from simple scripts to high-performance web applications.

Key Features

  • Complete Redis Support: Full coverage of all Redis commands and data types
  • Async/Await Support: Native asyncio support for high-performance applications
  • Connection Pooling: Efficient connection management for multi-threaded applications
  • Redis Cluster: Built-in support for Redis Cluster deployments
  • Sentinel Support: High availability with Redis Sentinel integration
  • Pipeline Support: Command batching for improved performance
  • Pub/Sub: Real-time messaging with Redis publish/subscribe
  • Framework Integration: Seamless integration with Django, Flask, FastAPI, and other Python frameworks

Getting Started

Refer to the complete Python guide to install, connect, and use redis-py.

RATE THIS PAGE
Back to top ↑