{ "info": { "author": "Yusril Rapsanjani", "author_email": "yuranicorp@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# List Slicer\nThis library has a function to split the data list into several small sections\n\n## Usage\nUse the following code to split your list data\n\n### Split List data\n```\nfrom listslicer.slicer import Slicer\n\n#My list data\ndata = [\n 200, 1230, 15, 2200, 5550\n]\n#2 is amount to split\ndata_slice = Slicer.cut(data, 2)\nprint(data_slice)\n```\n### Result\n```\n[[200, 1230], [15, 2200], [5550]]\n```\n\n## Example to split Dictionary\n```\ndata = [\n {\n \"foodname\": \"Ayam Bakar\",\n \"price\": 12000\n }, \n {\n \"foodname\": \"Jus Mangga\",\n \"price\": 7000\n },\n {\n \"foodname\": \"Mie Goreng\",\n \"price\": 9000\n },\n {\n \"foodname\": \"Chicken Katsu\",\n \"price\": 15000\n },\n]\nprint(slicer.cut(data, 2))\n```\n### Result \n```\n[\n [{'price': 12000, 'foodname': 'Ayam Bakar'}, {'price': 7000, 'foodname': 'Jus Mangga'}], \n [{'price': 9000, 'foodname': 'Mie Goreng'}, {'price': 15000, 'foodname': 'Chicken Katsu'}]\n]\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yusriltakeuchi/list-slicer", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "list-slice", "package_url": "https://pypi.org/project/list-slice/", "platform": "", "project_url": "https://pypi.org/project/list-slice/", "project_urls": { "Homepage": "https://github.com/yusriltakeuchi/list-slicer" }, "release_url": "https://pypi.org/project/list-slice/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "This library has a function to split the data list into several small sections", "version": "1.0.0" }, "last_serial": 5419297, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9f6a7c67636d95d2ad78bfaf40342bd8", "sha256": "bfbb63974275feb3a5bbe034e5f44480a7b6ec0caf584ec0c01c54890862ef46" }, "downloads": -1, "filename": "list-slice-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9f6a7c67636d95d2ad78bfaf40342bd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2390, "upload_time": "2019-06-19T08:52:49", "url": "https://files.pythonhosted.org/packages/94/63/0a47868b661d3c7c9dde679299f72f7d99e6d900b9ae1a578667ffe60264/list-slice-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f6a7c67636d95d2ad78bfaf40342bd8", "sha256": "bfbb63974275feb3a5bbe034e5f44480a7b6ec0caf584ec0c01c54890862ef46" }, "downloads": -1, "filename": "list-slice-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9f6a7c67636d95d2ad78bfaf40342bd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2390, "upload_time": "2019-06-19T08:52:49", "url": "https://files.pythonhosted.org/packages/94/63/0a47868b661d3c7c9dde679299f72f7d99e6d900b9ae1a578667ffe60264/list-slice-1.0.0.tar.gz" } ] }