Skip to main content

Asyncio Redis client

Project description

SiderPy

Minimalistic Python asyncio Redis client library

tests Documentation Status

Installation

hiredis support

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

or pure python

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

Examples

In [1]: import siderpy                                                                                                                                                                                

In [2]: redis = siderpy.Redis('redis://localhost:6379')                                                                                                                                                   

In [3]: await redis.select(1)                                                                                                                                                                           
Out[3]: b'OK'

In [4]: await redis.set('key', 'value')                                                                                                                                                                 
Out[4]: b'OK'

In [5]: await redis.get('key')                                                                                                                                                                          
Out[5]: b'value'

In [6]: await redis.close()

Documentation

siderpy.readthedocs.io

Benchmark

Benchmark test available at github workflow actions step Benchmark.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

siderpy-0.7.0.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

siderpy-0.7.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page