https://github.com/levsh/siderpy
Python asyncio Redis client library
https://github.com/levsh/siderpy
asyncio asyncio-redis python python3 redis-client
Last synced: 10 months ago
JSON representation
Python asyncio Redis client library
- Host: GitHub
- URL: https://github.com/levsh/siderpy
- Owner: levsh
- License: mit
- Created: 2020-04-24T09:27:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-26T12:09:29.000Z (about 3 years ago)
- Last Synced: 2025-02-18T10:17:12.714Z (over 1 year ago)
- Topics: asyncio, asyncio-redis, python, python3, redis-client
- Language: Python
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SiderPy
Minimalistic Python asyncio Redis client library

[](https://siderpy.readthedocs.io/en/latest/?badge=latest)
## Installation
hiredis support
```bash
pip install git+https://github.com/levsh/siderpy.git#egg=siderpy[hiredis]
```
or pure python
```bash
$ pip install git+https://github.com/levsh/siderpy.git
```
## Examples
```python
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`](https://siderpy.readthedocs.io/en/latest/)
## Benchmark
Benchmark test available at [`github workflow actions`](https://github.com/levsh/siderpy/actions?query=workflow%3Atests+branch%3Amaster)
step `Benchmark`.