{ "info": { "author": "leio10", "author_email": "leiodd@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Sometimes when you use the Queue class in Python, you need to get an item from any of several queues.\nThis small module implements an easy solution for this problem.\n\nMultiQueue class inherits from Queue and overrides internal methods of data access, sharing its interface but managing multiple queues instead of one.\n\nTo add items to a MultiQueue, the put method must receive a tuple with the identifier of the queue as the first element and the value to be stored as the second element.\n\nWhen getting an item from a MultiQueue, you get a tuple indicating from which queue has been extracted and the extracted value.\nIf there are items in multiple queues, these are obtained mixed, as applying the Round Robin algorithm.\n\nFurthermore, when instantiating the MultiQueue is possible to assign different weights to the queues, so that some have higher priority over others.\nIf you have 2 queues in a MultiQueue, with weights 1 and 10 and both with a large number of elements, in 11 calls to get method you will obtain just one element from the first queue and 10 elements from the second.", "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/leio10/python-multiqueue", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "multiqueue", "package_url": "https://pypi.org/project/multiqueue/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/multiqueue/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/leio10/python-multiqueue" }, "release_url": "https://pypi.org/project/multiqueue/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Sometimes when you use the Queue class in Python, you need to get an item from any of several queues. This small module implements an easy solution for this problem.", "version": "0.1.6" }, "last_serial": 795089, "releases": { "0.1.6": [ { "comment_text": "", "digests": { "md5": "e546b8a0c0ad006f95c38d0f66e45e4d", "sha256": "ae97cae508a675341188eca80ff94c6ebc8f52a87a713333ce80d6a5b1237be5" }, "downloads": -1, "filename": "multiqueue-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e546b8a0c0ad006f95c38d0f66e45e4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2885, "upload_time": "2012-08-26T18:49:45", "url": "https://files.pythonhosted.org/packages/aa/c1/c1ee76998785d70d0972891340f0c2a22aacaf14aa0322f2c0cb174e0bca/multiqueue-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e546b8a0c0ad006f95c38d0f66e45e4d", "sha256": "ae97cae508a675341188eca80ff94c6ebc8f52a87a713333ce80d6a5b1237be5" }, "downloads": -1, "filename": "multiqueue-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e546b8a0c0ad006f95c38d0f66e45e4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2885, "upload_time": "2012-08-26T18:49:45", "url": "https://files.pythonhosted.org/packages/aa/c1/c1ee76998785d70d0972891340f0c2a22aacaf14aa0322f2c0cb174e0bca/multiqueue-0.1.6.tar.gz" } ] }