skillfed

valkey-glide

Valkey GLIDE Async client. Supports Valkey and Redis OSS.

valkey-glide v2.5.1 3.6M downloads/30d#2,570 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

Valkey GLIDE is the official open-source Python client library for Valkey and Redis OSS, built on a Rust core with Python bindings. It provides both async and sync APIs for connecting to standalone or cluster deployments, with support for pub/sub messaging, automatic subscription reconciliation, and high-availability features. The library is designed for low latency and reliability, backed by AWS and GCP support.

Developers use it to execute Redis commands (get, set, etc.) against Valkey or Redis servers, manage pub/sub subscriptions with dynamic reconciliation, and handle cluster failover transparently. It requires Python 3.9 or later and runs on Linux (Ubuntu, Amazon Linux) and macOS; Alpine Linux is not supported. The five runtime dependencies (anyio, cffi, protobuf, sniffio, typing-extensions) are stable and widely adopted.

Use it for:

  • Build async web applications that need fast, low-latency access to Valkey/Redis for caching, sessions, or real-time data.
  • Implement pub/sub messaging with automatic subscription reconciliation to ensure subscriptions stay synchronized across connection changes.
  • Connect to Redis cluster deployments with built-in failover and high-availability support without manual cluster management.
  • Use sync client in blocking or non-async code paths where asyncio is not available or desired.
  • Store and retrieve structured data using Valkey commands in production applications backed by AWS or GCP infrastructure.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Valkey GLIDE is an official async and sync Python client for Valkey and Redis OSS, supporting both standalone and cluster modes with built-in pub/sub, high availability, and automatic subscription reconciliation.

Yes. Valkey GLIDE is the official, actively maintained client with no known vulnerabilities, permissive licensing, and strong backing from AWS/GCP. Install friction is moderate but manageable for modern Python environments (3.9+). Choose it for new Valkey/Redis projects or when you need cluster support, pub/sub, or async performance. Avoid only if you require Alpine Linux support or need a synchronous-only client without the async overhead.

Install

valkey-glide on PyPI

pip

pip install valkey-glide

uv

uv add valkey-glide

poetry

poetry add valkey-glide

Installing valkey-glide

Before you install

Medium install friction due to compiled wheels for multiple Python versions (3.10–3.14) and architectures (x86_64, arm64, macOS, Linux). Active maintenance with a recent release (4 days old). Five runtime dependencies including cffi and protobuf add some complexity but are stable, widely-used libraries.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most production and proprietary projects.

Quickstart

pip install valkey-glide

import asyncio
from glide import GlideClientConfiguration, NodeAddress, GlideClient

async def main():
    config = GlideClientConfiguration([NodeAddress("localhost", 6379)])
    client = await GlideClient.create(config)
    await client.set("key", "value")
    result = await client.get("key")
    print(result)

asyncio.run(main())

Requires Python 3.9 or later. Alpine Linux / MUSL is not supported; tested on Ubuntu 20+, Amazon Linux 2/2023, and macOS 13.7+. A running Valkey or Redis OSS server is required.

Verify before relying

  • Performance characteristics and latency benchmarks compared to other Redis clients
  • Specific Valkey and Redis OSS engine versions supported (referenced in docs but not in fact sheet)
  • Concurrency framework support details (asyncio and trio mentioned but not fully detailed)

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction medium — platform-specific wheel
Runtime dependencies 5 — anyio, cffi, protobuf, sniffio, typing-extensions
Maintenance actively maintained — 4 days since the last release
First released
Downloads 3,585,808/month — #2,570 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: valkey_glide-2.5.1-cp310-cp310-macosx_10_7_x86_64.whl; valkey_glide-2.5.1-cp310-cp310-macosx_11_0_arm64.whl; valkey_glide-2.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; valkey_glide-2.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; valkey_glide-2.5.1-cp311-cp311-macosx_10_7_x86_64.whl; valkey_glide-2.5.1-cp311-cp311-macosx_11_0_arm64.whl; valkey_glide-2.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; valkey_glide-2.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; valkey_glide-2.5.1-cp312-cp312-macosx_10_7_x86_64.whl; valkey_glide-2.5.1-cp312-cp312-macosx_11_0_arm64.whl; valkey_glide-2.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; valkey_glide-2.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; valkey_glide-2.5.1-cp313-cp313-macosx_10_7_x86_64.whl; valkey_glide-2.5.1-cp313-cp313-macosx_11_0_arm64.whl; valkey_glide-2.5.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; valkey_glide-2.5.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; valkey_glide-2.5.1-cp314-cp314-macosx_10_7_x86_64.whl; valkey_glide-2.5.1-cp314-cp314-macosx_11_0_arm64.whl; valkey_glide-2.5.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; valkey_glide-2.5.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: DatabaseTopic :: Software DevelopmentTopic :: Utilities

Tags

valkey redis client pythonasync redis cluster clientredis pubsub subscriptionvalkey standalone clusterredis high availability clientasync sync redis driverredis connection pooling
async-firstredis-valkeycluster-support

More Software Development packages