{ "info": { "author": "cold", "author_email": "wh_linux@126.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "gredis\n======\ngRedis is an asynchronous client library of Redis written with `Tornado `_ coroutine.\n\ngRedis is standing on the shoulders of giants:\n\n* `redis-py `_\n* `Tornado `_\n\nInstallation\n============\n\n.. code-block:: shell\n\n pip install gredis\n\nOR\n\n.. code-block:: shell\n\n easy_install gredis\n\n\nOR \n \n.. code-block:: shell\n\n git clone https://github.com/coldnight/gredis\n cd gredis\n python setup.py install\n\nUsage\n=====\n\n.. code-block:: python\n\n from tornado import gen\n from tornado import web\n from gredis.client import AsyncRedis\n\n client = AsyncRedis(\"ip.or.host\", 6379)\n\n class DemoHandler(web.RequestHandler):\n\n @gen.coroutine\n def get(self):\n ret = yield client.incr(\"key\")\n redis = client.to_blocking_client()\n ret2 = redis.incr(\"key\")\n self.write(str(ret + ret2))\n\nPub/Sub\n-------\n.. code-block:: python\n\n from tornado import gen\n from tornado import web\n from gredis.client import AsyncRedis\n\n client = AsyncRedis(\"ip.or.host\", 6379)\n\n class PubSubHandler(web.RequestHandler):\n\n @gen.coroutine\n def get(self):\n pubsub = client.pubsub()\n channel = \"test\"\n yield pubsub.subscribe(channel)\n response = yield pubsub.get_message(True)\n assert response[\"type\"] == \"subscribe\"\n response = yield pubsub.get_message(True)\n assert response[\"type\"] == \"message\"\n self.write(response['data'])\n\n @gen.coroutine\n def post(self):\n yield client.publish(channel, \"test\")\n\n\nNot Implementation\n==================\n\n* pipeline\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coldnight/gredis", "keywords": "", "license": "http://www.apache.org/licenses/LICENSE-2.0", "maintainer": "", "maintainer_email": "", "name": "gredis", "package_url": "https://pypi.org/project/gredis/", "platform": "", "project_url": "https://pypi.org/project/gredis/", "project_urls": { "Homepage": "https://github.com/coldnight/gredis" }, "release_url": "https://pypi.org/project/gredis/0.0.9/", "requires_dist": null, "requires_python": "", "summary": "gRedis is an asynchronous client library of Redis written with Tornado coroutine.", "version": "0.0.9" }, "last_serial": 3373118, "releases": { "0.0.1": [], "0.0.2": [], "0.0.3": [], "0.0.5": [], "0.0.6": [], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e3374d22c52b84552255001c7c931284", "sha256": "35660fb39b791e493c8dee00d2509855fe5b4d08212cc86678f4b9b5332628bc" }, "downloads": -1, "filename": "gredis-0.0.7-py2.7.egg", "has_sig": false, "md5_digest": "e3374d22c52b84552255001c7c931284", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13070, "upload_time": "2015-06-11T03:49:46", "url": "https://files.pythonhosted.org/packages/fb/bd/c520ff6a066f62d4e64d341b87bea343740d8837c0896d7fcc76c3c5378f/gredis-0.0.7-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "9ea26f3429dde7282748ae612920b4f7", "sha256": "5bb0a7ba2681c77a30a28498180ec286968e38270e7f87197f7a662f413bc0a9" }, "downloads": -1, "filename": "gredis-0.0.7.tar.gz", "has_sig": false, "md5_digest": "9ea26f3429dde7282748ae612920b4f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5419, "upload_time": "2015-06-11T03:49:41", "url": "https://files.pythonhosted.org/packages/4e/a3/f5c4a111e5cfa9bd6f5f701c67d36d570b6601c2ff5069880c151477c55d/gredis-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "e00ba45a9acdb04952b372338eca573c", "sha256": "494961bd00a9d050a05c31e76c555f1a347dabb924a968d1210c200fa00d878b" }, "downloads": -1, "filename": "gredis-0.0.8.tar.gz", "has_sig": false, "md5_digest": "e00ba45a9acdb04952b372338eca573c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5422, "upload_time": "2015-07-18T09:58:08", "url": "https://files.pythonhosted.org/packages/b1/5d/f62daaa85e043129760c89f47c65c97fe31dbd5aa1c83dfa66a1d0f37d76/gredis-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "4056a2dc5e5e2dc9556b227ace259d65", "sha256": "0b1e65e77cba2dfd1dda5a91e0a6e672478b343e004918dc95b1743ac118ceed" }, "downloads": -1, "filename": "gredis-0.0.9.tar.gz", "has_sig": false, "md5_digest": "4056a2dc5e5e2dc9556b227ace259d65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5452, "upload_time": "2017-11-29T03:48:03", "url": "https://files.pythonhosted.org/packages/7d/f0/fe6722590ad3b65ce0834b7eb50e2f5bdc78fd5724d4437ca03f329a0c34/gredis-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4056a2dc5e5e2dc9556b227ace259d65", "sha256": "0b1e65e77cba2dfd1dda5a91e0a6e672478b343e004918dc95b1743ac118ceed" }, "downloads": -1, "filename": "gredis-0.0.9.tar.gz", "has_sig": false, "md5_digest": "4056a2dc5e5e2dc9556b227ace259d65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5452, "upload_time": "2017-11-29T03:48:03", "url": "https://files.pythonhosted.org/packages/7d/f0/fe6722590ad3b65ce0834b7eb50e2f5bdc78fd5724d4437ca03f329a0c34/gredis-0.0.9.tar.gz" } ] }