海象
项目描述
## 海象

用于与[Redis](https://redis.ac.cn)一起工作的轻量级Python实用工具。
海象([walrus](https://github.com/coleifer/walrus))的目的是使Python中的Redis操作变得更容易。它不是要求你学习一个新的库,而是将walrus作为流行的redis-py客户端的子类和扩展,使其可以作为直接替换品使用。除了所有redis-py的功能外,walrus还支持一些新的命令,包括对流的完整支持和消费者组的支持。
海象包括
- 用于Redis数据类型的Pythonic容器类
[哈希](https://walrus.readthedocs.io/en/latest/containers.html#hashes)
[列表](https://walrus.readthedocs.io/en/latest/containers.html#lists)
[集合](https://walrus.readthedocs.io/en/latest/containers.html#sets)
[有序集合](https://walrus.readthedocs.io/en/latest/containers.html#sorted-sets-zset)
[HyperLogLog](https://walrus.readthedocs.io/en/latest/containers.html#hyperloglog)
[数组](https://walrus.readthedocs.io/en/latest/containers.html#arrays) (自定义类型)
[位字段](https://walrus.readthedocs.io/en/latest/containers.html#bitfield)
[布隆过滤器](https://walrus.readthedocs.io/en/latest/containers.html#bloomfilter)
[自动完成](https://walrus.readthedocs.io/zh/latest/autocomplete.html)
[缓存](https://walrus.readthedocs.io/zh/latest/cache.html) 实现,公开了几个用于缓存函数和方法调用的装饰器。
[全文搜索](https://walrus.readthedocs.io/zh/latest/full-text-search.html) 支持集合操作。
[速率限制](https://walrus.readthedocs.io/zh/latest/rate-limit.html)
[锁定](https://walrus.readthedocs.io/zh/latest/api.html#walrus.Lock)
实验性 活动记录风格的 [模型](https://walrus.readthedocs.io/zh/latest/models.html),支持持久化结构化信息和使用二级索引执行复杂查询。
更多?[更多!](https://walrus.readthedocs.io)
### 模型
在哈希基础上实现的持久化结构。支持二级索引,允许对等性、不等性、范围、小于/大于以及基本全文搜索索引进行筛选。全文搜索功能包括布尔搜索查询解析器、porter 词干提取器、停用词过滤和可选的双元音实现。
### 发现了错误?

请打开 [github 问题](https://github.com/coleifer/walrus/issues/new),我将尽力修复它!
### 代替后端
Walrus 还可以与类似 Redis 的数据库 [rlite](https://github.com/seppo0010/rlite), [ledis](http://ledisdb.io/), 和 [vedis](http://vedis.symisc.net) 集成。有关更多详细信息,请参阅 [文档](https://walrus.readthedocs.io/en/latest/alt-backends.html)。
项目详情
walrus-0.9.4.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b9f190b9c9a5192f144ffdd7b628eff5d5dbe3353bb2fb5aa48026594e82b7aa |
|
MD5 | a325f37cc599305abe7ed227d52dcd01 |
|
BLAKE2b-256 | 4268f723c30e9fa0a7932eae09cccf02d48a42c87861863ae11a38f6042b2f70 |