{"library":"fakeredis","type":"library","category":null,"description":"Fakeredis is a pure-Python implementation of the Redis Protocol API, designed primarily for testing purposes. It provides an in-memory substitute for a real Redis server, enabling developers to run tests without requiring an external Redis instance. The library offers enhanced versions of the `redis-py` and `valkey-py` Python bindings, supporting most Redis commands, including advanced features like RedisJSON and Lua scripting. Currently at version 2.34.1, it maintains an active development status with regular updates to ensure compatibility with recent `redis-py` versions and new Redis features.","language":"python","status":"active","version":"2.34.1","tags":["testing","mocking","redis","in-memory","database","async","fastapi"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install fakeredis","imports":["from fakeredis import FakeRedis","from fakeredis import FakeStrictRedis","from fakeredis import FakeAsyncRedis","from fakeredis import FakeServer","from fakeredis import TcpFakeServer"]},{"cmd":"pip install \"fakeredis[lua]\"","imports":[]},{"cmd":"pip install \"fakeredis[json]\"","imports":[]},{"cmd":"pip install \"fakeredis[probabilistic]\"","imports":[]}],"homepage":null,"github":"https://github.com/cunla/fakeredis-py","docs":"https://fakeredis.moransoftware.ca/","changelog":null,"pypi":"https://pypi.org/project/fakeredis/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.2,"avg_import_s":0.54,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/fakeredis/compatibility"}}