Lightweight Python utilities for working with Redis - walrus

Lightweight Python utilities for working with Redis - walrus

  • [1. Installation](#1. Installation)
  • [2. API Documentation](#2. API Documentation)
  • References

walrus
https://walrus.readthedocs.io/en/latest/

walrus
https://github.com/coleifer/walrus

Lightweight Python utilities for working with Redis.

The purpose of walrus is to make working with Redis in Python a little easier. Rather than ask you to learn a new library, walrus subclasses and extends the popular redis-py client, allowing it to be used as a drop-in replacement. In addition to all the features in redis-py, walrus adds support for some newer commands, including full support for streams and consumer groups.

1. Installation

https://walrus.readthedocs.io/en/latest/installation.html

Most users will want to simply install the latest version, hosted on PyPI:

复制代码
pip install walrus

(base) yongqiang@yongqiang:~$ pip install walrus
Collecting walrus
  Downloading walrus-0.9.5.tar.gz (85 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.5/85.5 kB 191.1 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: redis>=3.0.0 in ./miniconda3/lib/python3.11/site-packages (from walrus) (6.4.0)
Building wheels for collected packages: walrus
  Building wheel for walrus (setup.py) ... done
  Created wheel for walrus: filename=walrus-0.9.5-py3-none-any.whl size=97670 sha256=0b96858b0ae3d22c33851431297b2abdd45c94ca0d05ecef7e316c571e4885f6
  Stored in directory: /home/yongqiang/.cache/pip/wheels/96/d1/e8/36d87b91704012360148e42a1b013280e1dd91bd386de23479
Successfully built walrus
Installing collected packages: walrus
Successfully installed walrus-0.9.5
(base) yongqiang@yongqiang:~$

2. API Documentation

https://walrus.readthedocs.io/en/latest/api.html

References

1\] Yongqiang Cheng,