---
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

### A fast, pure-Python implementation of the Redis protocol — no server required.
[](https://pypi.org/project/fakeredis/)
[](https://github.com/cunla/fakeredis-py/actions/workflows/test.yml)
[](https://github.com/cunla/fakeredis-py/actions/workflows/test.yml)
[](https://pypi.org/project/fakeredis/)
[](https://pypi.org/project/fakeredis/)
[](./LICENSE)
[](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/)