Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmr/tredis
An asynchronous Redis client for Tornado
https://github.com/gmr/tredis
asynchronous python redis tornado
Last synced: 3 months ago
JSON representation
An asynchronous Redis client for Tornado
- Host: GitHub
- URL: https://github.com/gmr/tredis
- Owner: gmr
- License: bsd-3-clause
- Created: 2015-11-16T18:05:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T09:26:58.000Z (about 4 years ago)
- Last Synced: 2024-10-14T17:13:04.739Z (3 months ago)
- Topics: asynchronous, python, redis, tornado
- Language: Python
- Homepage: https://tredis.readthedocs.io/
- Size: 237 KB
- Stars: 20
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
TRedis
======
An asynchronous Redis client for Tornado|Version| |Status| |Coverage|
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
-------.. code:: python
import logging
import pprintfrom 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().. |Version| image:: https://img.shields.io/pypi/v/tredis.svg?
:target: https://pypi.python.org/pypi/tredis.. |Status| image:: https://img.shields.io/travis/gmr/tredis.svg?
:target: https://travis-ci.org/gmr/tredis.. |Coverage| image:: https://img.shields.io/codecov/c/github/gmr/tredis.svg?
:target: https://codecov.io/github/gmr/tredis?branch=master