{
  "schema_version": 2,
  "id": "integrate/redis-py",
  "title": "Python client for Redis",
  "url": "https://redis.io/docs/latest/integrate/redis-py/",
  "summary": "Learn how to build with Redis and Python",
  "tags": [
    "docs",
    "integrate",
    "oss",
    "rs",
    "rc"
  ],
  "last_updated": "2026-09-17T14:54:53+01:00",
  "children": [],
  "page_type": "content",
  "content_hash": "4319a5323bafa7237aa996d593198d30fbdf5f032baa2563bd87db7637f3dcf1",
  "sections": [
    {
      "id": "overview-1",
      "title": "Overview",
      "role": "overview",
      "text": "Connect your Python application to a Redis database using the redis-py client library."
    },
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "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."
    },
    {
      "id": "key-features",
      "title": "Key Features",
      "role": "content",
      "text": "- **Complete Redis Support**: Full coverage of all Redis commands and data types\n- **Async/Await Support**: Native asyncio support for high-performance applications\n- **Connection Pooling**: Efficient connection management for multi-threaded applications\n- **Redis Cluster**: Built-in support for Redis Cluster deployments\n- **Sentinel Support**: High availability with Redis Sentinel integration\n- **Pipeline Support**: Command batching for improved performance\n- **Pub/Sub**: Real-time messaging with Redis publish/subscribe\n- **Framework Integration**: Seamless integration with Django, Flask, [FastAPI](https://redis.io/docs/latest/integrate/fastapi), and other Python frameworks"
    },
    {
      "id": "getting-started",
      "title": "Getting Started",
      "role": "setup",
      "text": "Refer to the complete [Python guide](https://redis.io/docs/latest/develop/clients/redis-py) to install, connect, and use redis-py."
    }
  ],
  "examples": []
}
