{ "info": { "author": "Abhinav Ajgaonkar", "author_email": "abhinav316@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "styx: A simple distributed message queue based on Redis\n=======================================================\n\nStyx is a simple library that turns a bunch of standalone `Redis `_ servers into a powerful distributed queue.\nThe redis servers don't need any special configuration or even be aware of each other in any way. The messages are loosely ordered.\nA java version can be found `here `_. The java and python versions are compatible - i.e. messages\npublished by one client can be read by the other client.\n\nInstall\n-------\n.. code-block:: python\n\n pip install styx\n\nQuickstart\n----------\n\n.. code-block:: python\n\n #!/usr/bin/env python\n # encoding: utf-8\n\n import styx\n\n # Define the Redis host locations (the default port is 6379)\n hosts = [ \"redis1.example.com\", \"redis2.example.com:8080\", \"redis3.example.com\" ]\n\n connection = styx.Styx(hosts, db=3) # default db is 0\n # If a queue doesn't exist, it will be created automatically\n q = connection.get_queue(\"myTestQueue\")\n q.put(\"Hello\")\n q.put(\"World\")\n q.put(\"Message1234\")\n\n q.get() # returns \"Hello\"\n q.get() # returns \"World\"\n\n # Check how many messages are left in the queue\n q.size() # returns 1\n\n # Delete this queue\n connection.delete_queue(q)\n\nUnit Tests\n----------\nTo run unit tests, make sure you have 3 redis instances running on localhost at ports 6700, 6701, 6702.\n\n.. code-block:: shell\n\n pip install nose\n nosetests\n\n\nSource available on GitHub: http://github.com/abh1nav/styx-python/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/styx/", "keywords": null, "license": "Copyright 2013 Abhinav Ajgaonkar\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "styx", "package_url": "https://pypi.org/project/styx/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/styx/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/styx/" }, "release_url": "https://pypi.org/project/styx/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Distributed message queue based on Redis", "version": "0.1.2" }, "last_serial": 843557, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "63cf52666db656dcd9c2040bc6e59941", "sha256": "de57e2c622165cee10e32131a16a0e36be04974e07bcf146384972d8f0181aea" }, "downloads": -1, "filename": "styx-0.1.2.tar.gz", "has_sig": false, "md5_digest": "63cf52666db656dcd9c2040bc6e59941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3462, "upload_time": "2013-08-19T20:37:00", "url": "https://files.pythonhosted.org/packages/a4/76/7e983f644acd9e8f3a99202dbe152357bd09e511ad6c6b47d7dd0b955725/styx-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "63cf52666db656dcd9c2040bc6e59941", "sha256": "de57e2c622165cee10e32131a16a0e36be04974e07bcf146384972d8f0181aea" }, "downloads": -1, "filename": "styx-0.1.2.tar.gz", "has_sig": false, "md5_digest": "63cf52666db656dcd9c2040bc6e59941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3462, "upload_time": "2013-08-19T20:37:00", "url": "https://files.pythonhosted.org/packages/a4/76/7e983f644acd9e8f3a99202dbe152357bd09e511ad6c6b47d7dd0b955725/styx-0.1.2.tar.gz" } ] }