{ "info": { "author": "Akul Mathur", "author_email": "akurnya@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: Freely Distributable", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "=============\r\nFlatten List\r\n=============\r\n\r\nGiven a list of nested lists/tuples, returns all the elements in a single list.\r\nTypical usage::\r\n\r\n #!/usr/bin/env python\r\n\r\n from flatten.flatten import flattenlist\r\n \r\n the_list = [[1,2,3],[4,5,6], [7], [8,9]]\r\n flattenlist(the_list)\r\n [1, 2, 3, 4, 5, 6, 7, 8, 9]\r\n \r\n\r\n\r\nShort Intro\r\n------------\r\n\r\nThere are already many implementations of this problem, given below.\r\n\r\n\r\n- Enthought Matplotlib. If you have matplotlib installed or Enthought Canopy.The flatten module using::\r\n\r\n from matplotlib.cbook import flatten\r\n\r\n- The main recipie for above code given here:\r\n\r\nhttp://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/121294\r\n\r\n- An attempt using this module is made in this stackoverflow problem:\r\n\r\nhttp://stackoverflow.com/questions/406121/flattening-a-shallow-list-in-python/20400584#20400584\r\n\r\n\r\nFlattenList is a vanilla python attempt to get the same result without any external module overhead.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.python.org/pypi/FlattenList", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "FlattenList", "package_url": "https://pypi.org/project/FlattenList/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/FlattenList/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://pypi.python.org/pypi/FlattenList" }, "release_url": "https://pypi.org/project/FlattenList/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Given a list of nested lists/tuples, returns all the elements in a single list", "version": "0.1.4" }, "last_serial": 1401494, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "16a4a32b7126ecf695e4d2c357eb463e", "sha256": "d5728b086ac5dd135c906bf1ff45e9f504ee51d42430585f19414a3de351ee51" }, "downloads": -1, "filename": "FlattenList-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "16a4a32b7126ecf695e4d2c357eb463e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3579, "upload_time": "2015-01-29T12:31:17", "url": "https://files.pythonhosted.org/packages/79/a8/1dd0aa339685bd7a50180925a1b482a0ebe5a8b0b81fca85cb3ad3d240e9/FlattenList-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de44e27fc52624c1459710ce863d3bb4", "sha256": "f355e71557c89c7c792fa81b6fe5b9a7eabcaaff294408638f66230fde936e0e" }, "downloads": -1, "filename": "FlattenList-0.1.4.zip", "has_sig": false, "md5_digest": "de44e27fc52624c1459710ce863d3bb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5577, "upload_time": "2015-01-29T12:31:22", "url": "https://files.pythonhosted.org/packages/c8/2b/d1dff7f6ed07af9f20df74066173ecaa2a0066f0582c1691d04ae94fbe09/FlattenList-0.1.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16a4a32b7126ecf695e4d2c357eb463e", "sha256": "d5728b086ac5dd135c906bf1ff45e9f504ee51d42430585f19414a3de351ee51" }, "downloads": -1, "filename": "FlattenList-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "16a4a32b7126ecf695e4d2c357eb463e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3579, "upload_time": "2015-01-29T12:31:17", "url": "https://files.pythonhosted.org/packages/79/a8/1dd0aa339685bd7a50180925a1b482a0ebe5a8b0b81fca85cb3ad3d240e9/FlattenList-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de44e27fc52624c1459710ce863d3bb4", "sha256": "f355e71557c89c7c792fa81b6fe5b9a7eabcaaff294408638f66230fde936e0e" }, "downloads": -1, "filename": "FlattenList-0.1.4.zip", "has_sig": false, "md5_digest": "de44e27fc52624c1459710ce863d3bb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5577, "upload_time": "2015-01-29T12:31:22", "url": "https://files.pythonhosted.org/packages/c8/2b/d1dff7f6ed07af9f20df74066173ecaa2a0066f0582c1691d04ae94fbe09/FlattenList-0.1.4.zip" } ] }