skillfed

hiredis

Python wrapper for hiredis

hiredis Permissive license MIT Active 522 v3.4.1 released

Install

hiredis on PyPI

pip

pip install hiredis

uv

uv add hiredis

poetry

poetry add hiredis

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 6 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: hiredis-3.4.1-cp310-cp310-macosx_10_15_universal2.whl; hiredis-3.4.1-cp310-cp310-macosx_10_15_x86_64.whl; hiredis-3.4.1-cp310-cp310-macosx_11_0_arm64.whl; hiredis-3.4.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; hiredis-3.4.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; hiredis-3.4.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; hiredis-3.4.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; hiredis-3.4.1-cp310-cp310-musllinux_1_2_aarch64.whl; hiredis-3.4.1-cp310-cp310-musllinux_1_2_ppc64le.whl; hiredis-3.4.1-cp310-cp310-musllinux_1_2_s390x.whl; hiredis-3.4.1-cp310-cp310-musllinux_1_2_x86_64.whl; hiredis-3.4.1-cp310-cp310-win32.whl; hiredis-3.4.1-cp310-cp310-win_amd64.whl; hiredis-3.4.1-cp310-cp310-win_arm64.whl; hiredis-3.4.1-cp311-cp311-macosx_10_15_universal2.whl; hiredis-3.4.1-cp311-cp311-macosx_10_15_x86_64.whl; hiredis-3.4.1-cp311-cp311-macosx_11_0_arm64.whl; hiredis-3.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; hiredis-3.4.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; hiredis-3.4.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl

Keywords: Redis

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: POSIXProgramming Language :: CProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development

About hiredis

from the package's own PyPI description — quoted content, verbatim

hiredis-py

Build Status (image) License (image) pypi (image)

Python extension that wraps protocol parsing code in hiredis. It primarily speeds up parsing of multi bulk replies.

How do I Redis?

Learn for free at Redis University

Build faster with the Redis Launchpad

Try the Redis Cloud

Dive in developer tutorials

Join the Redis community

Work at Redis

Install

hiredis-py is available on PyPI, and can be installed via:

pip install hiredis

Building and Testing

Building this repository requires a recursive checkout of submodules, and...

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

hiredis wraps the C hiredis library to parse Redis protocol replies, significantly accelerating multi-bulk reply parsing in Python applications that communicate with Redis servers.

Medium install friction due to compiled C extension requiring build tools (gcc) and Python development headers. However, prebuilt wheels cover Python 3.8–3.14 across macOS, Linux (multiple architectures), and Windows, reducing friction for standard platforms. Actively maintained with recent releases.

MIT license is permissive and imposes minimal restrictions; you may use, modify, and distribute hiredis freely in commercial and private projects with only attribution required.

Usage

import hiredis

reader = hiredis.Reader()
reader.feed(b"$5\r\nhello\r\n")
result = reader.gets()
print(result)  # b'hello'

Requires Python 3.8+, gcc compiler, and Python development headers (e.g., python3-dev on Ubuntu/Debian) to build the C extension from source.

Verdict: hiredis is a well-maintained, actively developed Redis protocol parser offering substantial performance gains (up to 83x for large multi-bulk replies) with zero runtime dependencies. The MIT license poses no restrictions. Medium install friction is offset by broad wheel coverage and active maintenance; suitable for production Redis applications where parsing performance matters.

Needs verification

  • Whether prebuilt wheels eliminate the need for build tools on target deployment platforms
  • Real-world performance impact when integrated with specific Redis client libraries
redis protocol parserredis reply parsingfast redis clienthiredis python wrapperredis performance optimizationbulk reply parsingredis protocol acceleration

Similar packages