{ "info": { "author": "John Reese", "author_email": "john@noswap.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "aioitertools\n============\n\nitertools for AsyncIO and mixed iterables.\n\n[![build status](https://travis-ci.org/jreese/aioitertools.svg?branch=master)](https://travis-ci.org/jreese/aioitertools)\n[![version](https://img.shields.io/pypi/v/aioitertools.svg)](https://pypi.org/project/aioitertools)\n[![license](https://img.shields.io/pypi/l/aioitertools.svg)](https://github.com/jreese/aioitertools/blob/master/LICENSE)\n[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n\nInstall\n-------\n\naioitertools requires Python 3.6 or newer.\nYou can install it from PyPI:\n\n $ pip3 install aioitertools\n\n\nUsage\n-----\n\naioitertools shadows the standard library whenever possible to provide\nasynchronous version of the modules and functions you already know. It's\nfully compatible with standard iterators and async iterators alike, giving\nyou one unified,\u00a0familiar interface for interacting with iterable objects:\n\n from aioitertools import iter, next, map, zip\n\n something = iter(...)\n first_item = await next(something)\n\n async for item in iter(something):\n ...\n\n\n async def fetch(url):\n response = await aiohttp.request(...)\n return response.json\n\n async for value in map(fetch, MANY_URLS):\n ...\n\n\n async for a, b in zip(something, something_else):\n ...\n\n\naioitertools emulates the entire `itertools` module, offering the same\nfunction signatures, but as async generators. All functions support\nstandard iterables and async iterables alike, and can take functions or\ncoroutines:\n\n from aioitertools import chain, islice\n\n async def generator1(...):\n yield ...\n\n async def generator2(...):\n yield ...\n\n async for value in chain(generator1(), generator2()):\n ...\n\n async for value in islice(generator1(), 2, None, 2):\n ...\n\n\nSee [builtins.py][builtins] and [itertools.py][itertools] for full documentation\nof functions and abilities.\n\n\nLicense\n-------\n\naioitertools is copyright [John Reese](https://jreese.sh), and licensed under\nthe MIT license. I am providing code in this repository to you under an open\nsource license. This is my personal repository; the license you receive to\nmy code is from me and not from my employer. See the `LICENSE` file for details.\n\n\n[builtins]: https://github.com/jreese/aioitertools/blob/master/aioitertools/builtins.py\n[itertools]: https://github.com/jreese/aioitertools/blob/master/aioitertools/itertools.py", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jreese/aioitertools", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "aioitertools", "package_url": "https://pypi.org/project/aioitertools/", "platform": "", "project_url": "https://pypi.org/project/aioitertools/", "project_urls": { "Homepage": "https://github.com/jreese/aioitertools" }, "release_url": "https://pypi.org/project/aioitertools/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "asyncio version of the standard multiprocessing module", "version": "0.4.0" }, "last_serial": 5206497, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "5d20a0e9a3582210bb4128120c5a53d4", "sha256": "4ffaee6746f5ef902f1d8793e98040310e415ca9f4eb3aaf67f6d124b48855b5" }, "downloads": -1, "filename": "aioitertools-0.0.0.tar.gz", "has_sig": false, "md5_digest": "5d20a0e9a3582210bb4128120c5a53d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1981, "upload_time": "2018-06-26T17:04:34", "url": "https://files.pythonhosted.org/packages/d1/68/367dd2e3507cc51a7a299e52b5173bd5c2d625461592590253436ef419be/aioitertools-0.0.0.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "7618df0216b94251d4ff4afa1b3576e8", "sha256": "fc7a150e3bfebcf562de1da2176a39748f69b1ed87e0d934119a154a4a72671f" }, "downloads": -1, "filename": "aioitertools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7618df0216b94251d4ff4afa1b3576e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5674, "upload_time": "2018-06-27T04:27:07", "url": "https://files.pythonhosted.org/packages/b4/1f/42cac891884156eb298d5dba7cb2b963552923fed1b74e54c62c695e673b/aioitertools-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "965f5771045e31a8068ed71680eb8592", "sha256": "3f2249bdde47b58c2b47acc8597d281ab432c530b6f867fd790eb87cbdf94b49" }, "downloads": -1, "filename": "aioitertools-0.2.0.tar.gz", "has_sig": false, "md5_digest": "965f5771045e31a8068ed71680eb8592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10808, "upload_time": "2018-06-28T06:34:36", "url": "https://files.pythonhosted.org/packages/74/b0/93538c27359f0f254b2f09409dbbaceb256e212cc44510946568cafc8992/aioitertools-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c44bcd0293b7c0fa34f5df04d9bab99c", "sha256": "0a0a2fc55bbc9e0401ce2e3b36b19ec3d480137c6a9dee1177d6cfa5dd7aa55a" }, "downloads": -1, "filename": "aioitertools-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c44bcd0293b7c0fa34f5df04d9bab99c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12082, "upload_time": "2019-02-07T03:38:19", "url": "https://files.pythonhosted.org/packages/58/37/210a021a625f5340be29a50ae64a0be662a65860b126a2a28f066e9e5daa/aioitertools-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "e6e8fb9d00bd97e8f2ba37782d2bd420", "sha256": "e37efdd2e34d30e597d18fd57735a7af2a965d000d697d1237444f4d0b5278a6" }, "downloads": -1, "filename": "aioitertools-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e6e8fb9d00bd97e8f2ba37782d2bd420", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12113, "upload_time": "2019-03-06T23:37:47", "url": "https://files.pythonhosted.org/packages/aa/98/590bc298e850daff2cfefee46129d14a4c9fb9c24301689d338e515e37e5/aioitertools-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "68d14340ac961180229d4735596a7aaf", "sha256": "6421500480ac6cfda723a0f06119b068a6b33e1f32efd7f9755a29b301a7890c" }, "downloads": -1, "filename": "aioitertools-0.3.2.tar.gz", "has_sig": false, "md5_digest": "68d14340ac961180229d4735596a7aaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12152, "upload_time": "2019-03-31T18:27:49", "url": "https://files.pythonhosted.org/packages/14/bf/6e30c9da2d8c02c2465adaa4d688c691dedd2cbcd1b7a38d8298e24fa825/aioitertools-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "3b7f452c6fe2d63b48cde63621649222", "sha256": "e4d9d892290eccafb16c78e7a6d40e728541f6eb754a48fd74d76a6ccca6c428" }, "downloads": -1, "filename": "aioitertools-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3b7f452c6fe2d63b48cde63621649222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12967, "upload_time": "2019-04-30T05:46:58", "url": "https://files.pythonhosted.org/packages/88/0f/bb6e9b023f613b17404b59eabac7e2fe470c36607fcc1f341db0415814ae/aioitertools-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b7f452c6fe2d63b48cde63621649222", "sha256": "e4d9d892290eccafb16c78e7a6d40e728541f6eb754a48fd74d76a6ccca6c428" }, "downloads": -1, "filename": "aioitertools-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3b7f452c6fe2d63b48cde63621649222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12967, "upload_time": "2019-04-30T05:46:58", "url": "https://files.pythonhosted.org/packages/88/0f/bb6e9b023f613b17404b59eabac7e2fe470c36607fcc1f341db0415814ae/aioitertools-0.4.0.tar.gz" } ] }