项目作者: levsh

项目描述 :
Python asyncio Redis client library
高级语言: Python
项目地址: git://github.com/levsh/siderpy.git
创建时间: 2020-04-24T09:27:05Z
项目社区:https://github.com/levsh/siderpy

开源协议:MIT License

下载


SiderPy

Minimalistic Python asyncio Redis client library

tests
Documentation Status

Installation

hiredis support

  1. pip install git+https://github.com/levsh/siderpy.git#egg=siderpy[hiredis]

or pure python

  1. $ pip install git+https://github.com/levsh/siderpy.git

Examples

  1. In [1]: import siderpy
  2. In [2]: redis = siderpy.Redis('redis://localhost:6379')
  3. In [3]: await redis.select(1)
  4. Out[3]: b'OK'
  5. In [4]: await redis.set('key', 'value')
  6. Out[4]: b'OK'
  7. In [5]: await redis.get('key')
  8. Out[5]: b'value'
  9. In [6]: await redis.close()

Documentation

siderpy.readthedocs.io

Benchmark

Benchmark test available at github workflow actions
step Benchmark.