{ "info": { "author": "Ravi Sharma", "author_email": "ravi.sharma.cs11@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "A python package to run sliding window with overlapping on numpy array\n\n### Status\n[![Build Status](https://travis-ci.org/imravishar/sliding_window.svg?branch=master)](https://travis-ci.org/imravishar/sliding_window)\n[![PyPI](https://img.shields.io/pypi/v/window-slider.svg)](https://pypi.python.org/pypi/window-slider)\n[![last commit](https://img.shields.io/github/last-commit/imravishar/sliding_window.svg?label=last%20commit)](https://github.com/imravishar/sliding_window/commits/master)\n[![License](https://img.shields.io/hexpm/l/plug.svg)](https://tldrlegal.com/license/apache-license-2.0-(apache-2.0))\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fimravishar%2Fsliding_window.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fimravishar%2Fsliding_window?ref=badge_shield)\n[![PyPI Package monthly downloads](https://img.shields.io/pypi/dm/window-slider.svg?style=flat)](https://pypi.python.org/pypi/window-slider)\n[![PyPI download week](https://img.shields.io/pypi/dw/window-slider.svg)](https://pypi.python.org/pypi/window-slider/)\n\n**Usage**\n=========\n $ pip install window-slider\n \n$ python\n\n from window_slider import Slider\n import numpy\n list = numpy.array([0, 1, 2, 3, 4, 5, 6, 7])\n bucket_size = 3\n overlap_count = 1\n slider = Slider(bucket_size,overlap_count)\n slider.fit(list) \n while True:\n window_data = slider.slide()\n # do your stuff\n print(window_data)\n if slider.reached_end_of_list(): break\n\nnumpy 2D array\n-\n from window_slider import Slider\n import numpy\n list = numpy.array([[0, 1, 2, 3],[0, 1, 2, 3]])\n bucket_size = 3\n overlap_count = 1\n slider = Slider(bucket_size,overlap_count)\n slider.fit(list) \n while True:\n window_data = slider.slide()\n # do your stuff\n print(window_data)\n if slider.reached_end_of_list(): break\n\nwrap window data to custom class\n-\n class WindowData(object):\n def __init__(self, data):\n self._data = data\n \n def sum(self):\n return sum(self._data)\n \n \n from window_slider import Slider\n import numpy\n list = numpy.array([0, 1, 2, 3, 4, 5, 6, 7])\n bucket_size = 3\n overlap_count = 1\n slider = Slider(bucket_size,overlap_count,WindowData)\n slider.fit(list) \n while True:\n window_data = slider.slide()\n # do your stuff\n print(window_data.sum())\n if slider.reached_end_of_list(): break\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fimravishar%2Fsliding_window.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fimravishar%2Fsliding_window?ref=badge_large)", "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/imravishar/sliding_window", "keywords": "window,sliding,overlap,slider", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "window-slider", "package_url": "https://pypi.org/project/window-slider/", "platform": "", "project_url": "https://pypi.org/project/window-slider/", "project_urls": { "Homepage": "https://github.com/imravishar/sliding_window" }, "release_url": "https://pypi.org/project/window-slider/0.8/", "requires_dist": null, "requires_python": "", "summary": "A lib to implement sliding window with overlapping on numpy array", "version": "0.8" }, "last_serial": 4644497, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0b1e91f07ce5cbbf810e1e8a65b6a539", "sha256": "7f386cd23390ba16a8944a64c0747226704040dd9771ae9fca6337f24f9fc900" }, "downloads": -1, "filename": "window_slider-0.1.tar.gz", "has_sig": false, "md5_digest": "0b1e91f07ce5cbbf810e1e8a65b6a539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1216, "upload_time": "2017-08-17T18:50:45", "url": "https://files.pythonhosted.org/packages/83/3f/6fdec99717f48a1e0ae2ec7984cefb20700477d335340c1c64c792e363be/window_slider-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "18aaa634b61cd8fc6b5d49d9244fed6d", "sha256": "147e5e8f220f920b84c6fc3ad984c5971ba56960b7ca9c32bc8402b17bca0180" }, "downloads": -1, "filename": "window_slider-0.2.tar.gz", "has_sig": false, "md5_digest": "18aaa634b61cd8fc6b5d49d9244fed6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1216, "upload_time": "2017-08-17T19:15:38", "url": "https://files.pythonhosted.org/packages/99/6c/acf9be5261874e4358f5ce4fcac6c69c99cb18291fbc470fda92785bc1e6/window_slider-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "363e6e8bb4f57021572891b10f51e3f5", "sha256": "1a3291d0c2004f89d8248d042e1ece394d301be9d5c9d333a6679f2ea92e9ba4" }, "downloads": -1, "filename": "window_slider-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "363e6e8bb4f57021572891b10f51e3f5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3463, "upload_time": "2018-03-08T12:16:02", "url": "https://files.pythonhosted.org/packages/23/69/e09b85989dbc128f4237911f37f0c623714d7e7d3257b1bf165e2e63dbf9/window_slider-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2bda1fda00ad5d748b051d7ee57d2ef", "sha256": "74617416b3f69a9c46fd57463e2db3777f8e7c88412edc1fc532a331bcf23672" }, "downloads": -1, "filename": "window_slider-0.3.zip", "has_sig": false, "md5_digest": "e2bda1fda00ad5d748b051d7ee57d2ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4435, "upload_time": "2018-03-08T12:16:03", "url": "https://files.pythonhosted.org/packages/db/bf/bb56a2fdaaf8e0c1d995f155b78513d228fe3bc69604951413e0f96a1778/window_slider-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0cae4294a92779ff530eb70ffc930250", "sha256": "65c98b6c1b35841735e9a7410c7fd81aaf62048a04054d448f56761f994cde4e" }, "downloads": -1, "filename": "window_slider-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0cae4294a92779ff530eb70ffc930250", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3193, "upload_time": "2018-03-08T13:29:00", "url": "https://files.pythonhosted.org/packages/5c/9a/1d96d95df8a9230cc578c376c9b7eea30cf9b2a884b7b96370a810e75efa/window_slider-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3db5087349514ec89eb730757e360376", "sha256": "498f1c7f3feed032e5078bb6da31150c598a44993e50795e469e86c7686bcdaf" }, "downloads": -1, "filename": "window_slider-0.4.zip", "has_sig": false, "md5_digest": "3db5087349514ec89eb730757e360376", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3466, "upload_time": "2018-03-08T13:29:02", "url": "https://files.pythonhosted.org/packages/56/82/1bfe283e0608e32a7bd786a81b95e4ae79d9ea35ddc1ffe77d0797993c27/window_slider-0.4.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8c34b5a6fabad536a540df091d332b2f", "sha256": "10a8fe4697dfcc53b51a93a7e545c2508082aaa0016f400d2d681bca4c5a1f04" }, "downloads": -1, "filename": "window_slider-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c34b5a6fabad536a540df091d332b2f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7158, "upload_time": "2018-11-06T06:01:27", "url": "https://files.pythonhosted.org/packages/23/14/37ef27c6c5bc3140e4214e2cf200978addb62df9d1d06d1fcd94740eafda/window_slider-0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "983d613216de4b4158d4f6168d01f865", "sha256": "e4f2058031a05796620775c5465b3a2f3cde802b205f5496a236cc86e6e65272" }, "downloads": -1, "filename": "window_slider-0.5.zip", "has_sig": false, "md5_digest": "983d613216de4b4158d4f6168d01f865", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5918, "upload_time": "2018-11-06T06:01:23", "url": "https://files.pythonhosted.org/packages/a8/42/1129d0477556010b7afcb4a662ea28c8c5ea2c4872715fe225248dd7b090/window_slider-0.5.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "e8a65910e4fac9d48c87ea00173df994", "sha256": "d00d2568a8a91702592208ca0b923d8c1cfd4e4db5c5b6be6a9ef6182316bb7f" }, "downloads": -1, "filename": "window_slider-0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8a65910e4fac9d48c87ea00173df994", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7159, "upload_time": "2018-11-06T06:07:40", "url": "https://files.pythonhosted.org/packages/58/d9/b299b6a02f0f39f9472a40b274cd7595df42626fc08434354300b416a7b0/window_slider-0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "703f43173fabac6f5492605dbb76c01a", "sha256": "9fa5bb1e941f3e4a11bf34a8a2c30d8fe17d99db6adbae8e9e4b704d2f3f424e" }, "downloads": -1, "filename": "window_slider-0.6.zip", "has_sig": false, "md5_digest": "703f43173fabac6f5492605dbb76c01a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2018-11-06T06:07:37", "url": "https://files.pythonhosted.org/packages/2e/ad/7580d5949b884bcef831c295a8b530d142fd34ba68b17a74a0b4b694c136/window_slider-0.6.zip" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "10427051dd3af95accbfe8d780cbed2a", "sha256": "ee0ba97e71ab669f2c2afcf55939db67c9fb63777b40281affb698c80e55db8a" }, "downloads": -1, "filename": "window_slider-0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "10427051dd3af95accbfe8d780cbed2a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7157, "upload_time": "2018-11-06T06:15:28", "url": "https://files.pythonhosted.org/packages/f8/57/54e612206169b5952e459083110f3d330e67f8c26803e2f8489847305492/window_slider-0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c46e7102439d78590dc90c1aefb51dbc", "sha256": "54ecbecd137faca6a1996d01d87473beab79ad3fdec3afcfb8b1360f6a2b50f0" }, "downloads": -1, "filename": "window_slider-0.7.zip", "has_sig": false, "md5_digest": "c46e7102439d78590dc90c1aefb51dbc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5952, "upload_time": "2018-11-06T06:15:26", "url": "https://files.pythonhosted.org/packages/99/4a/e762e749d172186732112ba6a154df47c1cb116e56cc3cfe72cc15b61aae/window_slider-0.7.zip" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "701342fa0df2be8c4e04e1b01f52999f", "sha256": "65b24b4ad5a020222e68b005fbbf154193498b7071a1ff14050b8336fe5f8e45" }, "downloads": -1, "filename": "window_slider-0.8.zip", "has_sig": false, "md5_digest": "701342fa0df2be8c4e04e1b01f52999f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5992, "upload_time": "2018-12-29T18:10:05", "url": "https://files.pythonhosted.org/packages/5f/44/0a2bce60022902238aac90bd933de9b9ac2215811115afc03ed39db2b9c5/window_slider-0.8.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "701342fa0df2be8c4e04e1b01f52999f", "sha256": "65b24b4ad5a020222e68b005fbbf154193498b7071a1ff14050b8336fe5f8e45" }, "downloads": -1, "filename": "window_slider-0.8.zip", "has_sig": false, "md5_digest": "701342fa0df2be8c4e04e1b01f52999f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5992, "upload_time": "2018-12-29T18:10:05", "url": "https://files.pythonhosted.org/packages/5f/44/0a2bce60022902238aac90bd933de9b9ac2215811115afc03ed39db2b9c5/window_slider-0.8.zip" } ] }