{ "info": { "author": "Hong Minhee", "author_email": "hongminhee@member.fsf.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: Stackless", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "``lazylist``\n============\n\n.. image:: https://badge.fury.io/py/lazylist.svg\n :alt: PyPI\n :target: https://pypi.python.org/pypi/lazylist\n\n.. image:: https://travis-ci.org/dahlia/lazylist.svg?branch=master\n :alt: Build Status\n :target: https://travis-ci.org/dahlia/lazylist\n\nThis small package provides a proxy list to a list-returning function:\n\n>>> from lazylist import LazyList\n>>> l = LazyList(lambda: x)\n>>> x = [1, 2, 3]\n>>> list(l)\n[1, 2, 3]\n\nMore precisely, view function doesn't have to return an exact ``list``,\nbut an any squence object e.g. ``str``, ``tuple``:\n\n>>> x = \"hello\"\n>>> list(l)\n['h', 'e', 'l', 'l', 'o']\n\nIt satisfies ``collections.abc.Sequence`` protocol:\n\n>>> from collections import Sequence\n>>> isinstance(l, Sequence)\nTrue\n>>> l[-1]\n'o'\n>>> len(l)\n5\n\nHowever, it doesn't satisfy ``collections.abc.MutableSequence`` protocol.\nIn other words, it's immutable:\n\n>>> from collections import MutableSequence\n>>> isinstance(l, MutableSequence)\nFalse\n>>> l[0] = 'H'\nTraceback (most recent call last):\n File \"\", line 1, in \nTypeError: 'LazyList' object does not support item assignment\n\nDistributed under LGPLv3 or higher.\n\nTodos\n-----\n\n- ``LazySet``\n- ``LazyMap``", "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/dahlia/lazylist", "keywords": null, "license": "LGPLv3+", "maintainer": null, "maintainer_email": null, "name": "lazylist", "package_url": "https://pypi.org/project/lazylist/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lazylist/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dahlia/lazylist" }, "release_url": "https://pypi.org/project/lazylist/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "Proxy list to a list-returning function", "version": "0.9.0" }, "last_serial": 1857973, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "bc2de977e2ae67f4e5a4ea21f18d9991", "sha256": "a04be55176997956387e0705823d822e0031a5d787fb1e792787ed1fd07f5ba6" }, "downloads": -1, "filename": "lazylist-0.9.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bc2de977e2ae67f4e5a4ea21f18d9991", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 3886, "upload_time": "2015-12-11T18:18:57", "url": "https://files.pythonhosted.org/packages/75/eb/dc3c807c2d0638898b3f57d2f57d3c044876ba6548cb66be488d1b0bbee3/lazylist-0.9.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "411aa103ffb87805b379fde62a6a8bf3", "sha256": "7bb960f2d39d0e6b274d65738bad3147721906298b1dbe7561158261666c2caa" }, "downloads": -1, "filename": "lazylist-0.9.0.tar.gz", "has_sig": true, "md5_digest": "411aa103ffb87805b379fde62a6a8bf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2267, "upload_time": "2015-12-11T18:18:51", "url": "https://files.pythonhosted.org/packages/3c/65/84cb36de68ab72059fca33016125cb6a2c1963817e42d0b04643bab21814/lazylist-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc2de977e2ae67f4e5a4ea21f18d9991", "sha256": "a04be55176997956387e0705823d822e0031a5d787fb1e792787ed1fd07f5ba6" }, "downloads": -1, "filename": "lazylist-0.9.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bc2de977e2ae67f4e5a4ea21f18d9991", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 3886, "upload_time": "2015-12-11T18:18:57", "url": "https://files.pythonhosted.org/packages/75/eb/dc3c807c2d0638898b3f57d2f57d3c044876ba6548cb66be488d1b0bbee3/lazylist-0.9.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "411aa103ffb87805b379fde62a6a8bf3", "sha256": "7bb960f2d39d0e6b274d65738bad3147721906298b1dbe7561158261666c2caa" }, "downloads": -1, "filename": "lazylist-0.9.0.tar.gz", "has_sig": true, "md5_digest": "411aa103ffb87805b379fde62a6a8bf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2267, "upload_time": "2015-12-11T18:18:51", "url": "https://files.pythonhosted.org/packages/3c/65/84cb36de68ab72059fca33016125cb6a2c1963817e42d0b04643bab21814/lazylist-0.9.0.tar.gz" } ] }