{ "info": { "author": "Ryan Hiebert", "author_email": "ryan@ryanhiebert.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "===================================\nGenseq: A Lazily Resolving Sequence\n===================================\n\n.. image:: https://img.shields.io/pypi/v/genseq/badge/?version=stable\n :target: https://pypi.python.org/pypi/genseq\n :alt: Latest version\n\n.. image:: https://travis-ci.org/ryanhiebert/genseq.svg?branch=master\n :target: https://travis-ci.org/ryanhiebert/genseq\n\nGenseq is sequence data structure that lazily consumes any iterable,\nincluding a generator, so that you can enjoy the benefits of both\ndelayed evaluation, and the slicing and random access of lists.\n\nThe ``Genseq`` class implements the collections ``Sequence`` ABC,\nso the standard methods of using an immutable sequence are all available.\n\nUsage\n=====\n\nInstall using Pip:\n\n.. code-block:: sh\n\n pip install genseq\n\nThen wrap your generator with ``genseq``:\n\n.. code-block:: pycon\n\n >>> from genseq import genseq\n >>> @genseq\n ... def myiter(stop):\n ... for i in range(stop):\n ... yield i\n ...\n >>> myiter(5)[2]\n 2\n >>>\n\nOr use the ``Genseq`` class on any iterable:\n\n.. code-block:: pycon\n\n >>> from genseq import Genseq\n >>> Genseq(range(5))[3]\n 3\n >>>\n\nHappy indexing!", "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/ryanhiebert/genseq", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "genseq", "package_url": "https://pypi.org/project/genseq/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/genseq/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ryanhiebert/genseq" }, "release_url": "https://pypi.org/project/genseq/1.0/", "requires_dist": null, "requires_python": null, "summary": "Lazily Resolving Sequence", "version": "1.0" }, "last_serial": 2666911, "releases": { "1.0": [] }, "urls": [] }