An asynchronous Redis client for Tornado
Project description
An asynchronous Redis client for Tornado
Documentation is available at tredis.readthedocs.io.
Commands Implemented
TRedis is a work in progress and not all commands are implemented. The following list details each command category and the number of commands implemented in each.
If you need functionality that is not yet implemented, follow the patterns for the category mixins that are complete and submit a PR!
Category |
Count |
---|---|
Cluster |
2 of 20 |
Connection |
5 of 5 |
Geo |
0 of 6 |
Hashes |
13 of 15 |
HyperLogLog |
3 of 3 |
Keys |
22 of 22 |
Lists |
9 of 17 |
Pub/Sub |
0 of 6 |
Scripting |
6 of 6 |
Server |
7 of 30 |
Sets |
15 of 15 |
Sorted Sets |
8 of 21 |
Strings |
23 of 23 |
Transactions |
0 of 5 |
For information on local development or contributing, see CONTRIBUTING.rst
Example
import logging
import pprint
from tornado import gen, ioloop
import tredis
@gen.engine
def run():
client = tredis.Client([{"host": "127.0.0.1", "port": 6379, "db": 0}],
auto_connect=False)
yield client.connect()
value = yield client.info()
pprint.pprint(value)
ioloop.IOLoop.current().stop()
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
io_loop = ioloop.IOLoop.current()
io_loop.add_callback(run)
io_loop.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tredis-0.8.0.tar.gz
.
File metadata
- Download URL: tredis-0.8.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72503db81c7100358ec5d1890b1f18846875089fbb08864fd277c80ccc6f97d |
|
MD5 | 32dcb51dc7a603a24b96be4ea4c66673 |
|
BLAKE2b-256 | 2efef306125201c1960f5ef34574a26ae221d0ba5ddf6ea5a7ad247ac2b0c81d |
File details
Details for the file tredis-0.8.0-py2.py3-none-any.whl
.
File metadata
- Download URL: tredis-0.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa429c023fd64457b989a2eac33bb53f293ea92b832ca51aaebac4f62dcc0b6b |
|
MD5 | 652d00eea7e2a5ba0fafe44429f66344 |
|
BLAKE2b-256 | 7e63d583cdae525d7805251ac949505bec1f3908ddcfceb8ff271fbdf47aea49 |