{ "info": { "author": "Steve Brettschneider", "author_email": "steve@bluehousefamily.com", "bugtrack_url": null, "classifiers": [], "description": "===================\nPython lazy-streams\n===================\n\nInspired by Java 8's streams, this Python module provides a fluent syntax for\nmanipulating and querying Python lists. It's called lazy-streams because\nit *lazy* evaluates the requests to increase performance and decrease resource\nrequirements. Because of the lazy evaluation, lazy-streams can work on really\nlarge data sets with relatively small delays.\n\nHere's a quick example:\n\n::\n\n >>> from lazy_streams import stream\n >>> s = stream(range(5000000)) \\\n ... .filter(lambda x: str(x)[0] == '3') \\\n ... .map(lambda x: -x) \\\n ... .map(lambda x: \"Item: %s\" % x) \\\n ... .take(75) \\\n ... .reverse() \n >>> print s.first_or_else()\n Item: -363\n >>> print s.take(5).to_list()\n ['Item: -363', 'Item: -362', 'Item: -361', 'Item: -360', 'Item: -359']\n >>> print s.take(3).to_string()\n Item: -363, Item: -362, Item: -361\n\n\nLazy-streams is intended to be a small (single-file), light-weight, simple\nimplementation that relies on a mimimal set of dependencies.\n\nAs you can see from the above example, you can stack multiple manipulations\non top of each other. The module will optimize the execution to only perform\nthe operations on the elements of the list that are involved in the eventual\noutput.\n\nAlso, the original list will remain unchanged as the output of each operation\nsimply returns a delta from the original value.\n\nDocumentation and more examples are available\n`docs `_.\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/brettschneider/python_lazy_streams/archive/0.4.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brettschneider/python_lazy_streams", "keywords": "lazy,stream,list,processing,java", "license": "", "maintainer": "", "maintainer_email": "", "name": "lazy-streams", "package_url": "https://pypi.org/project/lazy-streams/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lazy-streams/", "project_urls": { "Download": "https://github.com/brettschneider/python_lazy_streams/archive/0.4.tar.gz", "Homepage": "https://github.com/brettschneider/python_lazy_streams" }, "release_url": "https://pypi.org/project/lazy-streams/0.4/", "requires_dist": [ "promise-keeper" ], "requires_python": "", "summary": "Inspired by Java 8 streams, simple list processing", "version": "0.4" }, "last_serial": 2710045, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3c08be931395bf312907a8b44d52a6a8", "sha256": "35b4568fea4b517f9a826d0aeaca51c9a53a66d7ed0f5c4a3c0ce431990699fe" }, "downloads": -1, "filename": "lazy_streams-0.1-py2.7.egg", "has_sig": false, "md5_digest": "3c08be931395bf312907a8b44d52a6a8", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6923, "upload_time": "2017-03-09T02:06:14", "url": "https://files.pythonhosted.org/packages/57/33/63df7a4b4d9b8d1c141af9ac13b16d775b7ba9ada1851bb5b8005bed2664/lazy_streams-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a932f056d910470d36ef098953dd5caf", "sha256": "5772467a1824d550055f4943de340ec7363dc44eec08b31b32aa3e2b71ee61d2" }, "downloads": -1, "filename": "lazy_streams-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "a932f056d910470d36ef098953dd5caf", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4232, "upload_time": "2017-03-09T02:06:13", "url": "https://files.pythonhosted.org/packages/82/d6/484dc7fd73b969d792663bca99701ea2f1444f9a49c347d050e307474b39/lazy_streams-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87b66bb2b70f01bc99a00a59019ca33c", "sha256": "a7746aea16443b432d5e4eb29ca4fb3f93083b893634eb1821a4e1ea2db1d972" }, "downloads": -1, "filename": "lazy_streams-0.1.tar.gz", "has_sig": false, "md5_digest": "87b66bb2b70f01bc99a00a59019ca33c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2974, "upload_time": "2017-03-09T02:06:15", "url": "https://files.pythonhosted.org/packages/4f/05/caa96cde07940b9708c2dbf8d3c6a56f79f16f248e1fdf112db617fa935b/lazy_streams-0.1.tar.gz" } ], "0.2": [], "0.3": [ { "comment_text": "", "digests": { "md5": "5ad1815dafa7b5fca8b495160db8f8fd", "sha256": "ffcf2633747ec77354c0c20dbf2ea51ccc675ba723cfd8c857a007560f9a98c5" }, "downloads": -1, "filename": "lazy_streams-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "5ad1815dafa7b5fca8b495160db8f8fd", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4982, "upload_time": "2017-03-16T12:58:32", "url": "https://files.pythonhosted.org/packages/64/47/8adff81a2d6bc8d7cbe200b34b6182a2318101c54bf368d59700e7bea050/lazy_streams-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05b1000cc581560599bedb8c3326de42", "sha256": "ecc68cb4141ede3035f5b41e246c31396f0e4b72622d2b9f21f0bfbe1047384a" }, "downloads": -1, "filename": "lazy_streams-0.3.tar.gz", "has_sig": false, "md5_digest": "05b1000cc581560599bedb8c3326de42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5407, "upload_time": "2017-03-16T12:58:34", "url": "https://files.pythonhosted.org/packages/15/65/22aa5018166f44851c768aec7e95d72a8ffb42eede516ef82b96a73218fc/lazy_streams-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "a2c949d57647ef02a843d0a861c2d992", "sha256": "dbfd30952ac82cc5afc7b862a4f7f19b7c084f41bc7e0c4df5fd36c192d5a252" }, "downloads": -1, "filename": "lazy_streams-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "a2c949d57647ef02a843d0a861c2d992", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4980, "upload_time": "2017-03-16T13:12:21", "url": "https://files.pythonhosted.org/packages/ab/b1/7d1d9aea32eec9e4e7e2a5a8834a9dd55b879c6250fa69dea11212549319/lazy_streams-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e93c4bec524d16d0465d12f25ccd636", "sha256": "8c3479136f2791c4da0cf557a11859f8834bfe97c504565d183b33ec3e29e636" }, "downloads": -1, "filename": "lazy_streams-0.4.tar.gz", "has_sig": false, "md5_digest": "9e93c4bec524d16d0465d12f25ccd636", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4385, "upload_time": "2017-03-16T13:12:23", "url": "https://files.pythonhosted.org/packages/6f/47/314c1f66831490057413e17f58d6fb57b746f55c5f1735d113ea24673154/lazy_streams-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2c949d57647ef02a843d0a861c2d992", "sha256": "dbfd30952ac82cc5afc7b862a4f7f19b7c084f41bc7e0c4df5fd36c192d5a252" }, "downloads": -1, "filename": "lazy_streams-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "a2c949d57647ef02a843d0a861c2d992", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4980, "upload_time": "2017-03-16T13:12:21", "url": "https://files.pythonhosted.org/packages/ab/b1/7d1d9aea32eec9e4e7e2a5a8834a9dd55b879c6250fa69dea11212549319/lazy_streams-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e93c4bec524d16d0465d12f25ccd636", "sha256": "8c3479136f2791c4da0cf557a11859f8834bfe97c504565d183b33ec3e29e636" }, "downloads": -1, "filename": "lazy_streams-0.4.tar.gz", "has_sig": false, "md5_digest": "9e93c4bec524d16d0465d12f25ccd636", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4385, "upload_time": "2017-03-16T13:12:23", "url": "https://files.pythonhosted.org/packages/6f/47/314c1f66831490057413e17f58d6fb57b746f55c5f1735d113ea24673154/lazy_streams-0.4.tar.gz" } ] }