{ "info": { "author": "Waawal", "author_email": "waawal@boom.ws", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "bottlehotqueue\n==============\n\n*FIFO message queue* plugin for **bottle.py** based on **HotQueue**\n\n`bottle.py `_ is a fast and simple micro-framework for python web-applications.\n\n`HotQueue `_ is a Python library that allows you to use Redis as a message queue within your Python programs.\n\nInstallation\n------------\n::\n\n $ pip install bottle-hotqueue\n\nFrom source\n***********\n::\n\n $ python setup.py install\n\nDependencies\n************\n\n`bottle` and `hotqueue`\n\nGetting Started\n---------------\n\nImporting and using the plugin in Bottle\n****************************************\n::\n\n import bottle\n from bottlehotqueue import Plugin\n\n\n app = bottle.Bottle()\n hotqueue = Plugin(keyword=\"myhotqueue\")\n app.install(hotqueue)\n\n\n @app.post('/put/:value', myhotqueue={'queue': 'myqueue'})\n def send_message(value, myqueue):\n \"\"\" This will put an item in the queue hotqueue:myqueue.\n \"\"\"\n return myqueue.put(value)\n\n\n @app.get('/get/', myhotqueue={'queue': 'myqueue'})\n def get_message(myqueue):\n \"\"\" We will now try to get a item from hotqueue:myqueue.\n if the queue is empty, we instead raise a 404.\n \"\"\"\n result = myqueue.get()\n if not result:\n raise bottle.HTTPError(404, \"Queue is Empty\")\n return result\n\n bottle.run(app, host='', port=8080)\n\n\nThe plugin will use `json` (or simplejson if available) as the standard serializer. This behaviour can be reverted to match the default implementation by passing asjson=False when instantiating the plugin. It will then conform to the standard HotQueue way of serializing objects by using pickle (or cpickle if available).\n\n::\n\n hotqueue = Plugin(keyword=\"myhotqueue\", asjson=False)\n\nWriting a simple consumer\n*************************\n::\n\n import json\n from hotqueue import HotQueue\n\n\n queue = HotQueue(\"myqueue\", host=\"localhost\", serializer=json)\n\n for item in queue.consume():\n print item\n\n\nMore on HotQueue: http://richardhenry.github.com/hotqueue/\n\nLicense\n-------\nMIT\n\nGithub links\n * https://github.com/defnull/bottle\n * https://github.com/richardhenry/hotqueue", "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/waawal/bottle_hotqueue", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bottle-hotqueue", "package_url": "https://pypi.org/project/bottle-hotqueue/", "platform": "any", "project_url": "https://pypi.org/project/bottle-hotqueue/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/waawal/bottle_hotqueue" }, "release_url": "https://pypi.org/project/bottle-hotqueue/0.2.5/", "requires_dist": null, "requires_python": null, "summary": "FIFO Queue for Bottle built upon HotQueue", "version": "0.2.5" }, "last_serial": 808242, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "fcf9c60e908adb202ef87cc0ba369fee", "sha256": "750327e5483ffc1fc5e5db704d4d325bc570bb2f416a98f73288cd249535055e" }, "downloads": -1, "filename": "bottle-hotqueue-0.1.2.tar.gz", "has_sig": false, "md5_digest": "fcf9c60e908adb202ef87cc0ba369fee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1493, "upload_time": "2012-02-16T21:42:09", "url": "https://files.pythonhosted.org/packages/e5/8a/e12c4f1da0627c675d24a6e9fce849579cb20984e7c4ee8a0441acabe908/bottle-hotqueue-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f6fa96877738f4f3e93597eebdbc41e6", "sha256": "9bc4ac3a988abe247b94ba5cb19e208aef78ccb67808dcf895ef2506d81aec54" }, "downloads": -1, "filename": "bottle-hotqueue-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f6fa96877738f4f3e93597eebdbc41e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1519, "upload_time": "2012-02-27T16:28:31", "url": "https://files.pythonhosted.org/packages/93/dd/59e7ab3a546885ec717d4e3e8606d4dd215afe8b17191cbefb36d981f340/bottle-hotqueue-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "built for Linux-2.6.32-5-openvz-686-i686-with-glibc2.4", "digests": { "md5": "789737ff33e071402410ed7d4f393998", "sha256": "4204573e4557840a4e6ba3978c0fb09d93863ae83e59b7aebe460954a190a297" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.0.linux-i686.tar.gz", "has_sig": false, "md5_digest": "789737ff33e071402410ed7d4f393998", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3303, "upload_time": "2012-04-06T15:42:37", "url": "https://files.pythonhosted.org/packages/4e/a0/44ab3c794f1efba1655aa04137de81e5d39da09d6d827927db37721c05aa/bottle-hotqueue-0.2.0.linux-i686.tar.gz" }, { "comment_text": "", "digests": { "md5": "0614f7970840aafb8c2102792093677f", "sha256": "24b1ea760f41ab5878c523aaf362281d1dcfe833b6b47c150c4e3f0899fa60dd" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0614f7970840aafb8c2102792093677f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2375, "upload_time": "2012-04-06T15:42:00", "url": "https://files.pythonhosted.org/packages/6f/7a/acf8ba73fb7aac0698cd7d13548f2663cee01f54cd580a545dfddc75427e/bottle-hotqueue-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6f52035e1efe8aeec593009e6a8671ce", "sha256": "aae2404de85f6e836da0bf774e1e68b66f899b2a438d09bdb17f9c4b1a9f0069" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6f52035e1efe8aeec593009e6a8671ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2399, "upload_time": "2012-04-09T17:32:37", "url": "https://files.pythonhosted.org/packages/12/86/5c58aec06fcfe5cba8c6c61ff7497a30d127fe03ec7a6e65a5e5495ea565/bottle-hotqueue-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "33f8123d73727b9c6669bc9c842c675e", "sha256": "65c776fd923a4bd0ccbf282ee5a897475cd16e24df9cf0019bb9f4fe97903f09" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.2.tar.gz", "has_sig": false, "md5_digest": "33f8123d73727b9c6669bc9c842c675e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2397, "upload_time": "2012-04-09T17:34:48", "url": "https://files.pythonhosted.org/packages/b1/e2/028c3e7693d695d91200ebf547aa8643ad72ee050c1af33c32c2a15df618/bottle-hotqueue-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "5d2d7d7749f9d824143185765d6ced3b", "sha256": "f161945f86d9b35abe5ab5403b16095339fcec037181206ddd19fdcf68757c4f" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.3.tar.gz", "has_sig": false, "md5_digest": "5d2d7d7749f9d824143185765d6ced3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2689, "upload_time": "2012-04-09T17:44:36", "url": "https://files.pythonhosted.org/packages/50/d1/b6e32c9c88d799d6aee91b6349d3824e8ba28dd3e11ed2c148d7c4d0a0ba/bottle-hotqueue-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "03aa8479938580da1172969c23ea9981", "sha256": "0d6be6d830fb3f2cf423ef496c48e6450e5d609639137036ebfe54bcbd3d9735" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.4.tar.gz", "has_sig": false, "md5_digest": "03aa8479938580da1172969c23ea9981", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2717, "upload_time": "2013-07-03T08:13:13", "url": "https://files.pythonhosted.org/packages/37/7c/994e2a54c3b5025cc9e6d65534eeb688f921db3602ae80c345c51893ccff/bottle-hotqueue-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "579520adec41648b570f45267a618cd2", "sha256": "acdf87e15a61cd6f3eab63eb3cdf0ffafd081509dae34c717f5b47890823ad70" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.5.tar.gz", "has_sig": false, "md5_digest": "579520adec41648b570f45267a618cd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2723, "upload_time": "2013-07-04T16:45:04", "url": "https://files.pythonhosted.org/packages/ca/43/e469b26fa16096fdc0bbf515ec957c000d28c143af3597f1942f1fb2cf97/bottle-hotqueue-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "579520adec41648b570f45267a618cd2", "sha256": "acdf87e15a61cd6f3eab63eb3cdf0ffafd081509dae34c717f5b47890823ad70" }, "downloads": -1, "filename": "bottle-hotqueue-0.2.5.tar.gz", "has_sig": false, "md5_digest": "579520adec41648b570f45267a618cd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2723, "upload_time": "2013-07-04T16:45:04", "url": "https://files.pythonhosted.org/packages/ca/43/e469b26fa16096fdc0bbf515ec957c000d28c143af3597f1942f1fb2cf97/bottle-hotqueue-0.2.5.tar.gz" } ] }