{ "info": { "author": "Jorge Alpedrinha Ramos", "author_email": "jalpedrinharamos@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Sliding Window\n==============\n\nSliding Window is an implementation of a process worker pool that constantly keeps a given number of running processes.\nThe implementation is based on python's multiprocessing module.\n\n\nInstall\n=======\n\nUsing Pip\n^^^^^^^^^\n\nRun the command:\n\n.. code-block:: bash\n\n pip install mp_sliding_window\n\n\nInstaling from the source\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nYou can clone the repository and install:\n\n.. code-block:: bash\n\n git clone https://github.com/jalpedrinha/slidingwindow.git\n cd slidingwindow && python setup.py install\n\n\n\nCompatibility\n=============\n\nTested for python2.7+\n\nSupports postgresql and sqlite3.\n\n\nGetting Started\n===============\n\nWe start by providing the tasks we'll be running using any iterable.\nIn this case we'll use a generator pattern because it makes sense in the context of a sliding window.\n\n.. code-block:: python\n\ndef generator():\n x = 0\n while x < 10:\n x += 1\n yield x\n\nNext we provide the function we want to run in each process\n\n.. code-block:: python\n\ndef square(x):\n print x*x\n\n\nThe last step is to create a sliding window with a given size, target and tasks.\nAfter invoking start the sliding window will run until there are no more tasks.\n\n.. code-block:: python\n\nsl = SlidingWindow(size = 5, target=square, tasks=generator())\nsl.start()\n\n\nDocumentation\n=============\n\nSoon..\n\n\nLicense\n=======\n\nThe BSD 3-Clause License\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nCopyright (c) 2015, Jorge Alpedrinha Ramos\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n* Neither the name of the organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": null, "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "MP_Sliding_Window", "package_url": "https://pypi.org/project/MP_Sliding_Window/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/MP_Sliding_Window/", "project_urls": null, "release_url": "https://pypi.org/project/MP_Sliding_Window/0.0.26/", "requires_dist": null, "requires_python": null, "summary": "Multiprocessing Based Sliding window", "version": "0.0.26" }, "last_serial": 1715674, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "92e8a436e03d5c2920945362d27eb072", "sha256": "f404a0791f88852a71d296712555519044bd56e7bda84c8116d0dfa03f752023" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "92e8a436e03d5c2920945362d27eb072", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5342, "upload_time": "2015-08-12T11:47:05", "url": "https://files.pythonhosted.org/packages/12/ee/e8bb64f5174bec676b41eec6ea8f335bc226b09ea3d210e5bc8b48677346/MP_Sliding_Window-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5f53895c8a37c8901628a748d8b7d85", "sha256": "58e49b1728e9a0a4b7fc47654c0c7f4d9f8665aeef30e91c94104120a3af6705" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a5f53895c8a37c8901628a748d8b7d85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3046, "upload_time": "2015-08-12T11:47:09", "url": "https://files.pythonhosted.org/packages/ca/8a/81abc4fa54e79b5cd323837f1850032b03dc77873277e5c83356d77dd5c7/MP_Sliding_Window-0.0.1.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "7e32097496374a17b0f7bbbcd0558d26", "sha256": "f031385642f8030766cf603a5bc3d489b5a3f22aeea9e4450ff2c15e55636039" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.11-py2-none-any.whl", "has_sig": false, "md5_digest": "7e32097496374a17b0f7bbbcd0558d26", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5362, "upload_time": "2015-08-12T11:53:36", "url": "https://files.pythonhosted.org/packages/1b/c8/f789059b053c59b4b02c53f7815f28a873dff7156b49951f61435a5a13bc/MP_Sliding_Window-0.0.11-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7946de43999aee78e6d9263f88716cc", "sha256": "4886fdadc32cf44255196863c93dcb3440de1aded4685ddb2b4dfaa5ecb168e3" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.11.tar.gz", "has_sig": false, "md5_digest": "e7946de43999aee78e6d9263f88716cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038, "upload_time": "2015-08-12T11:53:40", "url": "https://files.pythonhosted.org/packages/98/e0/8ec61bc85da391ed02765cfb3c19e14246ad5e932201391402a2e234437d/MP_Sliding_Window-0.0.11.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8b0899617e3c102a9fb7a09efd6d1473", "sha256": "a5ff7698fe7660e9a55f483a532dad8910f67165577c32d32f198bae285fc23c" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "8b0899617e3c102a9fb7a09efd6d1473", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5579, "upload_time": "2015-08-14T16:47:20", "url": "https://files.pythonhosted.org/packages/e6/44/08e3cbea26a7bfdf7cf4b1deb1b4e0378b287acaf6b4de7a983640b471b2/MP_Sliding_Window-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a255ba37060e03ff697f94efeb8ed5b", "sha256": "fda7f82aa98439edda332eaa78c2a465caa917bf025794ea6d522eaabe5b5788" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3a255ba37060e03ff697f94efeb8ed5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3267, "upload_time": "2015-08-14T16:47:24", "url": "https://files.pythonhosted.org/packages/75/5c/97ebe15c62e45601673f2b4dd2bbddb105396f5e28eaac4743f91ed6a07a/MP_Sliding_Window-0.0.2.tar.gz" } ], "0.0.21": [ { "comment_text": "", "digests": { "md5": "f18275f12e8abaaf72afe9fd2cd0a435", "sha256": "f2f5a50f7d4341a43ae3fd7ddec70d857426780b8749c099493c5cbbfb5e7c27" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.21-py2-none-any.whl", "has_sig": false, "md5_digest": "f18275f12e8abaaf72afe9fd2cd0a435", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5593, "upload_time": "2015-08-31T13:53:27", "url": "https://files.pythonhosted.org/packages/e1/83/4f81d3eb6890f0a30bb249a76aef9501de51044e00a3ab4b6d053148917b/MP_Sliding_Window-0.0.21-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1409e4212d1241d4092459f24a797421", "sha256": "0338d1465e2b99c2cc64bf7e26f2f25ae0fb1ea998e3ec4fa131338274404f33" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.21.tar.gz", "has_sig": false, "md5_digest": "1409e4212d1241d4092459f24a797421", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3276, "upload_time": "2015-08-31T13:53:30", "url": "https://files.pythonhosted.org/packages/c1/bc/19a5bb0cef8221a0906ea6c24b6bf89ee60836fb9dcab3e482f5ec5985a2/MP_Sliding_Window-0.0.21.tar.gz" } ], "0.0.22": [ { "comment_text": "", "digests": { "md5": "e780131607720ba618774a08be261c25", "sha256": "f3976fe721236b46a76203d1407206763fd62359704beacb102ab72f53543b44" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.22-py2-none-any.whl", "has_sig": false, "md5_digest": "e780131607720ba618774a08be261c25", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5813, "upload_time": "2015-09-08T16:26:47", "url": "https://files.pythonhosted.org/packages/49/74/8d18b2f4e236b302824f7685a4c4badc35ea36cd5afef5adb5c136de866a/MP_Sliding_Window-0.0.22-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "93405d7b7145a5133b4231f4f709e9bd", "sha256": "a464c247e2527297c3c4877e8e1ebec2791633ac982c5b4642c3fdc04cb4185d" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.22.tar.gz", "has_sig": false, "md5_digest": "93405d7b7145a5133b4231f4f709e9bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3782, "upload_time": "2015-09-08T16:26:51", "url": "https://files.pythonhosted.org/packages/09/fc/dcb6378824714dac8447cf4fd2a6c926bbf6def66ead21464e23e1d77a9f/MP_Sliding_Window-0.0.22.tar.gz" } ], "0.0.23": [ { "comment_text": "", "digests": { "md5": "979cd926867ce0b0089d6a088760c4ed", "sha256": "ba680634d37dc04607caa57ad653affc1d2e2836a80f2b1c608beab7ba8dcade" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.23-py2-none-any.whl", "has_sig": false, "md5_digest": "979cd926867ce0b0089d6a088760c4ed", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5820, "upload_time": "2015-09-09T10:11:29", "url": "https://files.pythonhosted.org/packages/24/80/10c5075070df66aa0f31ba485d8f75db5b5cef872290143b42e854d4fbbb/MP_Sliding_Window-0.0.23-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a29037e3650a57e2464c137fae6d379a", "sha256": "be8b13db103f0652df661d8053eb82c3db8592a93e63f25f5902b464f5eb0a2e" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.23.tar.gz", "has_sig": false, "md5_digest": "a29037e3650a57e2464c137fae6d379a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3795, "upload_time": "2015-09-09T10:11:33", "url": "https://files.pythonhosted.org/packages/19/ea/a9d77cb2fda04b6b5f83591a10aab841795a79851a7fee7eb7e810e75f91/MP_Sliding_Window-0.0.23.tar.gz" } ], "0.0.24": [ { "comment_text": "", "digests": { "md5": "3e216d8306b6da30ba8ab7de83340212", "sha256": "7e71e664e87f68372e20f830e3bb1131a237dc620547f7cfab502a9598e1fb64" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.24-py2-none-any.whl", "has_sig": false, "md5_digest": "3e216d8306b6da30ba8ab7de83340212", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5935, "upload_time": "2015-09-09T11:35:24", "url": "https://files.pythonhosted.org/packages/7d/c4/6d628a0139917ff7274d0a91a8b98d16ae59380c0fe40f338573da3cbcc6/MP_Sliding_Window-0.0.24-py2-none-any.whl" } ], "0.0.25": [ { "comment_text": "", "digests": { "md5": "9929835fbbe455618ee90cc9487b047d", "sha256": "ebbec0c0cbc426be206318454a7ff031da87dc3983edf5aaf1fb60914755a48d" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.25-py2-none-any.whl", "has_sig": false, "md5_digest": "9929835fbbe455618ee90cc9487b047d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5936, "upload_time": "2015-09-09T11:36:48", "url": "https://files.pythonhosted.org/packages/26/7e/b16bbe1b027d0ce79ee66112b556a499d52687c51a87a862ec68b162d2e0/MP_Sliding_Window-0.0.25-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4227501e51fbfdd694aa13f93f9bd8e8", "sha256": "e978767dff9b5ea7434ee84f63139b3618f18e1ea273d9b5b8c3677b3c190554" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.25.tar.gz", "has_sig": false, "md5_digest": "4227501e51fbfdd694aa13f93f9bd8e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3902, "upload_time": "2015-09-09T11:36:52", "url": "https://files.pythonhosted.org/packages/3a/65/3cacf850d24bf9c209dc5348a8a38bdaa889a499fd1406936cc3b1fd4ddc/MP_Sliding_Window-0.0.25.tar.gz" } ], "0.0.26": [ { "comment_text": "", "digests": { "md5": "8da2095cceeeaac87ceb679018649094", "sha256": "b215f5736a52ecbdd6ca3ddf9d6ae7dc2877ad14ddf703ea7dbeef1871654023" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.26-py2-none-any.whl", "has_sig": false, "md5_digest": "8da2095cceeeaac87ceb679018649094", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5882, "upload_time": "2015-09-09T15:54:35", "url": "https://files.pythonhosted.org/packages/e9/01/f517c1131997808a28aa376187cea3c71929c31997e475e5fffeedc9cc94/MP_Sliding_Window-0.0.26-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39bbfc2e5ad9d1d7d6cf56117de3d946", "sha256": "adfa3eba48f11adcc5284a82ebe3a8863dfbf43a511786d499d03fc334021d0b" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.26.tar.gz", "has_sig": false, "md5_digest": "39bbfc2e5ad9d1d7d6cf56117de3d946", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3850, "upload_time": "2015-09-09T15:54:39", "url": "https://files.pythonhosted.org/packages/64/c4/8647a07671b39716c384f67b029de595db623f33a6d1dd5fc70f9e5b4861/MP_Sliding_Window-0.0.26.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8da2095cceeeaac87ceb679018649094", "sha256": "b215f5736a52ecbdd6ca3ddf9d6ae7dc2877ad14ddf703ea7dbeef1871654023" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.26-py2-none-any.whl", "has_sig": false, "md5_digest": "8da2095cceeeaac87ceb679018649094", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5882, "upload_time": "2015-09-09T15:54:35", "url": "https://files.pythonhosted.org/packages/e9/01/f517c1131997808a28aa376187cea3c71929c31997e475e5fffeedc9cc94/MP_Sliding_Window-0.0.26-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39bbfc2e5ad9d1d7d6cf56117de3d946", "sha256": "adfa3eba48f11adcc5284a82ebe3a8863dfbf43a511786d499d03fc334021d0b" }, "downloads": -1, "filename": "MP_Sliding_Window-0.0.26.tar.gz", "has_sig": false, "md5_digest": "39bbfc2e5ad9d1d7d6cf56117de3d946", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3850, "upload_time": "2015-09-09T15:54:39", "url": "https://files.pythonhosted.org/packages/64/c4/8647a07671b39716c384f67b029de595db623f33a6d1dd5fc70f9e5b4861/MP_Sliding_Window-0.0.26.tar.gz" } ] }