--- id: fakeredis version: "2.37.0" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # fakeredis — Python implementation of redis API, can be used for testing purposes. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install fakeredis uv add fakeredis poetry add fakeredis ## Description
fakeredis ### A fast, pure-Python implementation of the Redis protocol — no server required. [![PyPI version](https://img.shields.io/pypi/v/fakeredis)](https://pypi.org/project/fakeredis/) [![CI](https://github.com/cunla/fakeredis-py/actions/workflows/test.yml/badge.svg)](https://github.com/cunla/fakeredis-py/actions/workflows/test.yml) [![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/cunla/b756396efb895f0e34558c980f1ca0c7/raw/fakeredis-py.json)](https://github.com/cunla/fakeredis-py/actions/workflows/test.yml) [![Downloads](https://img.shields.io/pypi/dm/fakeredis)](https://pypi.org/project/fakeredis/) [![Python versions](https://img.shields.io/pypi/pyversions/fakeredis)](https://pypi.org/project/fakeredis/) [![License](https://img.shields.io/pypi/l/fakeredis)](./LICENSE) [![Open Source Helpers](https://www.codetriage.com/cunla/fakeredis-py/badges/users.svg)](https://www.codetriage.com/cunla/fakeredis-py) [**Documentation**][readthedocs] · [**Supported commands**][readthedocs] · [**Changelog**](./docs/about/changelog.md) ·... ## AI interpretation — verify before relying fakeredis is a pure-Python, in-memory implementation of the Redis protocol that serves as a drop-in replacement for redis-py, enabling Redis-dependent code to run in tests without a server. Verdict: fakeredis is a mature, actively maintained testing utility with no known vulnerabilities, permissive licensing, and low install friction. It is well-suited for developers who need Redis-compatible in-memory testing without server overhead. [View on SkillFed](https://skillfed.io/packages/fakeredis) · [View on PyPI](https://pypi.org/project/fakeredis/)