{ "info": { "author": "Henry S. Harrison", "author_email": "henry.schafer.harrison@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "========\nOverview\n========\n\n\n\n``asyncio.Queue`` with history::\n\nObjects put on a ``HistoryQueue`` are gathered in tuples,\nwith the first element being the next item on the queue,\nfollowed by items add previously.\n\n``HistoryQueue`` can also be thought of as as asynchronous ``collections.deque``,\nwith ``put`` analogous to ``deque.appendleft``\nand ``get`` returning the entire deque (as a tuple).\n\n >>> from hqueue import HistoryQueue\n >>> hq = HistoryQueue(history_size=2)\n >>> hq.put_nowait(0)\n >>> hq.put_nowait(1)\n >>> hq.get_nowait()\n (0,)\n >>> hq.get_nowait()\n (1, 0)\n >>> hq.put_nowait(2)\n >>> hq.put_nowait(3)\n >>> hq.put_nowait(4)\n >>> hq.get_nowait()\n (2, 1, 0)\n >>> hq.get_nowait()\n (3, 2, 1)\n\nFor ease of illustration, in the above examples we use ``put_nowait`` and ``get_nowait``,\nthe synchronous counterparts of ``put`` and ``wait``, respectively.\nIn a coroutine, ``await put()`` could be used to block until the queue is not full,\nand ``await get()`` to block until there is an item in the queue.\n\nSee Also\n--------\n``asyncio.Queue``\n``collections.deque``\n\n\n\nChangelog\n=========\n\n0.1.0 (2016-06-28)\n------------------\n\n* First prototype.\n\n0.2.0 (2016-07-01)\n------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hsharrison/history-queue", "keywords": "asyncio,deque,queue,history", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "hqueue", "package_url": "https://pypi.org/project/hqueue/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hqueue/", "project_urls": { "Homepage": "https://github.com/hsharrison/history-queue" }, "release_url": "https://pypi.org/project/hqueue/0.2.0/", "requires_dist": [ "hypothesis; extra == 'test'", "pytest; extra == 'test'", "pytest-cov; extra == 'test'", "toolz; extra == 'test'" ], "requires_python": "", "summary": "asyncio.Queue with history", "version": "0.2.0" }, "last_serial": 2197464, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "c6b280960a7daf0794fe23a2a00d88ad", "sha256": "06004af167c5b66e6684330fcf65f74d56be43f71099df85ef80199a2ce8cca1" }, "downloads": -1, "filename": "hqueue-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c6b280960a7daf0794fe23a2a00d88ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5256, "upload_time": "2016-07-01T08:13:03", "url": "https://files.pythonhosted.org/packages/95/30/8c8fa3669624275273ea491ff06cf7e4aa161e6cc48c60b9cad0e369579f/hqueue-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f822e36de0ccd8ca6ddadbb5d19891d5", "sha256": "39e7cb66d39672b0c1fb2f306d89badeba656f99f81efaad50dac0a31ea4efc9" }, "downloads": -1, "filename": "hqueue-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f822e36de0ccd8ca6ddadbb5d19891d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12447, "upload_time": "2016-07-01T08:13:07", "url": "https://files.pythonhosted.org/packages/5b/de/9ae69d544e51e932eecf9b36ac3a15ecdd9f428b03b5d48d8560ee9f5278/hqueue-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6b280960a7daf0794fe23a2a00d88ad", "sha256": "06004af167c5b66e6684330fcf65f74d56be43f71099df85ef80199a2ce8cca1" }, "downloads": -1, "filename": "hqueue-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c6b280960a7daf0794fe23a2a00d88ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5256, "upload_time": "2016-07-01T08:13:03", "url": "https://files.pythonhosted.org/packages/95/30/8c8fa3669624275273ea491ff06cf7e4aa161e6cc48c60b9cad0e369579f/hqueue-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f822e36de0ccd8ca6ddadbb5d19891d5", "sha256": "39e7cb66d39672b0c1fb2f306d89badeba656f99f81efaad50dac0a31ea4efc9" }, "downloads": -1, "filename": "hqueue-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f822e36de0ccd8ca6ddadbb5d19891d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12447, "upload_time": "2016-07-01T08:13:07", "url": "https://files.pythonhosted.org/packages/5b/de/9ae69d544e51e932eecf9b36ac3a15ecdd9f428b03b5d48d8560ee9f5278/hqueue-0.2.0.tar.gz" } ] }