{"id":16759439,"url":"https://github.com/thefab/tornadis","last_synced_at":"2025-04-07T13:06:05.336Z","repository":{"id":19765395,"uuid":"23023249","full_name":"thefab/tornadis","owner":"thefab","description":"async minimal redis client for tornado ioloop designed for performances (use C hiredis parser)","archived":false,"fork":false,"pushed_at":"2020-05-20T12:15:10.000Z","size":230,"stargazers_count":125,"open_issues_count":6,"forks_count":21,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-06T19:37:57.058Z","etag":null,"topics":["async","hiredis-parser","python","redis","tornado"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thefab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-16T17:25:13.000Z","updated_at":"2025-03-17T14:03:13.000Z","dependencies_parsed_at":"2022-09-18T23:41:27.888Z","dependency_job_id":null,"html_url":"https://github.com/thefab/tornadis","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefab%2Ftornadis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefab%2Ftornadis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefab%2Ftornadis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefab%2Ftornadis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thefab","download_url":"https://codeload.github.com/thefab/tornadis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","hiredis-parser","python","redis","tornado"],"created_at":"2024-10-13T04:08:07.764Z","updated_at":"2025-04-07T13:06:05.317Z","avatar_url":"https://github.com/thefab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tornadis\n\n## Status (master branch)\n\n[![Travis](https://img.shields.io/travis/thefab/tornadis.svg)](https://travis-ci.org/thefab/tornadis)\n[![Coverage Status](https://coveralls.io/repos/thefab/tornadis/badge.png)](https://coveralls.io/r/thefab/tornadis)\n[![Code Health](https://landscape.io/github/thefab/tornadis/master/landscape.png)](https://landscape.io/github/thefab/tornadis/master)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/thefab/docker-centos-opinionated/blob/master/LICENSE)\n[![Maturity](https://img.shields.io/badge/maturity-beta-yellow.svg)](https://github.com/thefab/docker-centos-opinionated)\n[![Maintenance](https://img.shields.io/maintenance/yes/2018.svg)](https://github.com/thefab)\n\n## What is it ?\n\n`tornadis` is an async minimal redis client for tornado ioloop designed for performance (uses C hiredis parser).\n\n**WARNING : tornadis is considered in beta quality (API can change)**\n\n### Features\n\n- simple\n- good performances\n- coroutine friendly\n- production ready (timeouts, connection pool, error management)\n- nearly all redis features (pipeline, pubsub, standard commands)\n- autoconnection, autoreconnection\n- Python2 (\u003e=2.7) and Python3 (\u003e=3.2) support\n- Tornado \u003e=4.2 (in master branch) and Tornado 4.1 + toro (in tornado41 branch) support\n\n### Not implemented\n\n- cluster support\n\n## Example\n\n```python\n# Let's import tornado and tornadis\nimport tornado\nimport tornadis\n\n\n@tornado.gen.coroutine\ndef talk_to_redis():\n    # let's (re)connect (autoconnect mode), call the ping redis command\n    # and wait the reply without blocking the tornado ioloop\n    # Note: call() method on Client instance returns a Future object (and\n    # should be used as a coroutine).\n    result = yield client.call(\"PING\")\n    if isinstance(result, tornadis.TornadisException):\n        # For specific reasons, tornadis nearly never raises any exception\n        # they are returned as result\n        print \"got exception: %s\" % result\n    else:\n        # result is already a python object (a string in this simple example)\n        print \"Result: %s\" % result\n\n\n# Build a tornadis.Client object with some options as kwargs\n# host: redis host to connect\n# port: redis port to connect\n# autoconnect=True: put the Client object in auto(re)connect mode\nclient = tornadis.Client(host=\"localhost\", port=6379, autoconnect=True)\n\n# Start a tornado IOLoop, execute the coroutine and end the program\nloop = tornado.ioloop.IOLoop.instance()\nloop.run_sync(talk_to_redis)\n```\n\n## Full documentation\n\nFull documentation is available at http://tornadis.readthedocs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefab%2Ftornadis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefab%2Ftornadis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefab%2Ftornadis/lists"}