Walrus extends the redis-py client as a drop-in replacement with extra Redis helpers for Python applications.
Overview
Walrus is a Python package aimed at making Redis easier to use. It subclasses and extends the widely used redis-py client so existing code can adopt it without learning a separate client API.
Beyond standard redis-py behavior, it adds coverage for newer Redis commands, including full support for streams and consumer groups. The package bundles Pythonic container types for common Redis structures such as hashes, lists, sets, sorted sets, hyperloglogs, bit fields, bloom filters, and custom array types.
Higher-level components include autocomplete, a caching layer with decorators for functions and methods, full-text search with set operations, a graph store, rate limiting, and distributed locking. Together these pieces target application developers who already run Redis and want structured helpers on top of the database.
Walrus is imported into Python code and used against an existing Redis deployment; it is not standalone server software.
Key features
- Drop-in extension of redis-py
- Pythonic Redis container types
- Streams and consumer groups
- Function and method caching decorators
- Full-text search with sets
- Graph store on Redis
- Rate limiting and locking
Use cases
- Caching with Redis in Python
- Streams and consumer groups
- Full-text search on Redis data
- Autocomplete backed by Redis