{ "info": { "author": "Jeong YunWon", "author_email": "jeong+redispubsub@youknowone.org", "bugtrack_url": null, "classifiers": [], "description": "Redis pubsub router\n~~~~~~~~~~~~~~~~~~~\n\nBlocking subscribe implementation of pyredis is annoying for some case.\nIt is controllable with some technique, but here is a quick approach using\na python thread.\n\nNote: This implementation is good only for few situation.\n\nExample\n-------\n\n >>> import redis\n >>> redisc = redis.Redis()\n >>> import redispubsub\n >>> pubsub = redispubsub.RedisPubsub(redisc.pubsub())\n >>> pubsub.subscribe('1') # You SHOULD subscribe before starting thread.\n >>> pubsub.start() # Start the router\n >>> pubsub.dequeue('1')\n {'pattern': None, 'type': 'subscribe', 'channel': '1', 'data': 1L}\n >>> redisc.publish('1', 'test')\n >>> pubsub.dequeue('1') # None returned\n >>> pubsub.dequeue('1')\n {'pattern': None, 'type': 'message', 'channel': '1', 'data': 'test'}\n >>> pubsub.dequeue('1') # None returned", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/youknowone/redis-pubsub", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "redis-pubsub-helper", "package_url": "https://pypi.org/project/redis-pubsub-helper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/redis-pubsub-helper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/youknowone/redis-pubsub" }, "release_url": "https://pypi.org/project/redis-pubsub-helper/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Redis pubsub non-blocking interface (With a thread).", "version": "0.1.1" }, "last_serial": 711399, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "79e4a5c8af3c101853f6a84fe1fb93da", "sha256": "9c359ce0ad46285cd088fa103dbba1efb23097ddac72d5120d6f289db27b4d32" }, "downloads": -1, "filename": "redis-pubsub-helper-0.1.tar.gz", "has_sig": false, "md5_digest": "79e4a5c8af3c101853f6a84fe1fb93da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1902, "upload_time": "2013-05-23T06:54:22", "url": "https://files.pythonhosted.org/packages/ed/41/54741b950c7aa5dff5545f6ff174d4f82b927c77c109b9f6e96abefe5220/redis-pubsub-helper-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4a15d016838281f4c0bcff106e38f41f", "sha256": "cafae56de17eabc6934e1b3dfb69a4d13177480e6b221f84c06e1e3aabcb45f5" }, "downloads": -1, "filename": "redis-pubsub-helper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4a15d016838281f4c0bcff106e38f41f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1950, "upload_time": "2013-05-28T10:10:04", "url": "https://files.pythonhosted.org/packages/14/cf/8cca0d05989edab8b5eca4e1c431b63494a6bd7ca8f30a5c014963875d37/redis-pubsub-helper-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a15d016838281f4c0bcff106e38f41f", "sha256": "cafae56de17eabc6934e1b3dfb69a4d13177480e6b221f84c06e1e3aabcb45f5" }, "downloads": -1, "filename": "redis-pubsub-helper-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4a15d016838281f4c0bcff106e38f41f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1950, "upload_time": "2013-05-28T10:10:04", "url": "https://files.pythonhosted.org/packages/14/cf/8cca0d05989edab8b5eca4e1c431b63494a6bd7ca8f30a5c014963875d37/redis-pubsub-helper-0.1.1.tar.gz" } ] }