{ "info": { "author": "Andrei Lapets", "author_email": "a@lapets.io", "bugtrack_url": null, "classifiers": [], "description": "=====\nparts\n=====\n\nMinimal Python library for common list functions related to partitioning lists (and recombining them).\n\nPackage Installation and Usage\n------------------------------\nThe package is available on PyPI::\n\n python -m pip install parts\n\nThe library can be imported in the usual ways::\n\n import parts\n from parts import parts\n\nExamples\n--------\nExamples of usage are provided below::\n\n >>> from parts import parts\n >>> list(parts2([1,2,3,4,5,6,7], length=2))\n [[1, 2], [3, 4], [5, 6], [7]]\n \n >>> list(parts2([1,2,3,4,5,6,7], length=4))\n [[1, 2, 3, 4], [5, 6, 7]]\n \n >>> list(parts2([1,2,3,4,5,6,7], number=1))\n [[1, 2, 3, 4, 5, 6, 7]]\n \n >>> list(parts2([1,2,3,4,5,6,7], 5))\n [[1], [2], [3], [4, 5], [6, 7]]\n \n >>> list(parts2([1,2,3,4,5,6], 2, 3))\n [[1, 2, 3], [4, 5, 6]]\n \n >>> list(parts2([1,2,3,4,5,6], number=3, length=2))\n [[1, 2], [3, 4], [5, 6]]\n \n >>> list(parts([1,2,3,4,5,6,7], 7, [1,1,1,1,1,1,1]))\n [[1], [2], [3], [4], [5], [6], [7]]\n \n >>> list(parts([1,2,3,4,5,6], length=[2,2,2]))\n [[1, 2], [3, 4], [5, 6]]\n \n >>> list(parts([1,2,3,4,5,6], length=[1,2,3]))\n [[1], [2, 3], [4, 5, 6]]\n \n >>> list(parts2([1,2,3,4,5,6,7], number=3, length=2))\n Traceback (most recent call last):\n ...\n PartsError: 'List cannot be split into 3 parts each of length 2.'", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lapets/parts", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "parts", "package_url": "https://pypi.org/project/parts/", "platform": "", "project_url": "https://pypi.org/project/parts/", "project_urls": { "Homepage": "https://github.com/lapets/parts" }, "release_url": "https://pypi.org/project/parts/0.0.4.0/", "requires_dist": null, "requires_python": "", "summary": "Minimal Python library for common list functions related to partitioning lists (and recombining them).", "version": "0.0.4.0" }, "last_serial": 3402783, "releases": { "0.0.1.0": [ { "comment_text": "", "digests": { "md5": "338cd6a6c707df48351003c2345a0e23", "sha256": "f4ddc5f7f4f3f7c15c2b65f9a642138cb0da5462a4d89cac869288528988d9ab" }, "downloads": -1, "filename": "parts-0.0.1.0.tar.gz", "has_sig": false, "md5_digest": "338cd6a6c707df48351003c2345a0e23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1537, "upload_time": "2017-07-10T04:23:02", "url": "https://files.pythonhosted.org/packages/12/0f/9b6405170936b25ea1c7dc8a984833d3f9d4ab4b10491bde87e664000830/parts-0.0.1.0.tar.gz" } ], "0.0.3.0": [ { "comment_text": "", "digests": { "md5": "ccf63d093c0b8ba766220328abe88f75", "sha256": "0705ce01745d09138e4fddd9fa42f471fe14a3d967fcc38f23010dfe7104f3d3" }, "downloads": -1, "filename": "parts-0.0.3.0.tar.gz", "has_sig": false, "md5_digest": "ccf63d093c0b8ba766220328abe88f75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2250, "upload_time": "2017-12-09T03:43:39", "url": "https://files.pythonhosted.org/packages/1b/94/cda892782990c3b39f4508d45c7fa08d66d9d8e92e6918ac8ccf72c75027/parts-0.0.3.0.tar.gz" } ], "0.0.4.0": [ { "comment_text": "", "digests": { "md5": "39c2b718fb05db453137c39cc9a2ad0f", "sha256": "9a8cfd2a998b06fee099b9b726bc52fb6443b3e6a096f8b7d29ef5882bf9a1cf" }, "downloads": -1, "filename": "parts-0.0.4.0.tar.gz", "has_sig": false, "md5_digest": "39c2b718fb05db453137c39cc9a2ad0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2559, "upload_time": "2017-12-09T04:06:38", "url": "https://files.pythonhosted.org/packages/a3/11/017fc049732b7b1db19b9148c15e9df7329f3d0c3c5843303704f761f2b3/parts-0.0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39c2b718fb05db453137c39cc9a2ad0f", "sha256": "9a8cfd2a998b06fee099b9b726bc52fb6443b3e6a096f8b7d29ef5882bf9a1cf" }, "downloads": -1, "filename": "parts-0.0.4.0.tar.gz", "has_sig": false, "md5_digest": "39c2b718fb05db453137c39cc9a2ad0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2559, "upload_time": "2017-12-09T04:06:38", "url": "https://files.pythonhosted.org/packages/a3/11/017fc049732b7b1db19b9148c15e9df7329f3d0c3c5843303704f761f2b3/parts-0.0.4.0.tar.gz" } ] }