{ "info": { "author": "Alex Medeiros", "author_email": "alex.daniel.medeiros@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python" ], "description": "# __Limitloop__\n\nLimitloop is a lightweight python module for running loops that depend on precise timing.\n\nThis package is available through Pypi and can be installed with the following command.\n\n```sh\npython -m pip install limitloop\n```\n\n## Basic usage\n\nAll functionality of the module is provided through the `limitloop.Loop` class. This class is instantiated with a reference to a function, which it can then call at a consistent rate a preset number of times, or until otherwise interrupted. For example, the following code...\n\n```python\nfrom limitloop import Loop\n\n#Define a simple function for the Loop object to call\n#This function must accept the loop object itself as its first argument\ndef demoFunction(loop):\n print('Hello, world!')\n\n#Create our loop object, set to run at one iteration per second\nl = Loop(demoFunction, freq=1)\n#Call the function defined above 5 times\nl.run(5)\n```\n...will output the following, one line per second.\n```\nHello, world!\nHello, world!\nHello, world!\nHello, world!\nHello, world!\n```\nSee the [API reference](api_reference.md) for more advanced usage.\n\n*TODO: Add more advanced usage examples*", "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/Alex-Medeiros/limitloop", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "limitloop", "package_url": "https://pypi.org/project/limitloop/", "platform": "", "project_url": "https://pypi.org/project/limitloop/", "project_urls": { "Homepage": "https://github.com/Alex-Medeiros/limitloop" }, "release_url": "https://pypi.org/project/limitloop/0.1/", "requires_dist": null, "requires_python": "", "summary": "Limitloop is a lightweight python module for running loops that depend on precise timing.", "version": "0.1" }, "last_serial": 5299739, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7409107c96b0e99c2bdf07b1f8491a93", "sha256": "0f7df80b8820d045e7f5a3bad5412f5709cdc40789834b1b4f8cb407ec5623dd" }, "downloads": -1, "filename": "limitloop-0.1.tar.gz", "has_sig": false, "md5_digest": "7409107c96b0e99c2bdf07b1f8491a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2446, "upload_time": "2019-05-21T20:50:57", "url": "https://files.pythonhosted.org/packages/b9/f4/6440018ff57cf4776ff570871ca2437e2715c9fdd8195b25ab5bae902b2e/limitloop-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7409107c96b0e99c2bdf07b1f8491a93", "sha256": "0f7df80b8820d045e7f5a3bad5412f5709cdc40789834b1b4f8cb407ec5623dd" }, "downloads": -1, "filename": "limitloop-0.1.tar.gz", "has_sig": false, "md5_digest": "7409107c96b0e99c2bdf07b1f8491a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2446, "upload_time": "2019-05-21T20:50:57", "url": "https://files.pythonhosted.org/packages/b9/f4/6440018ff57cf4776ff570871ca2437e2715c9fdd8195b25ab5bae902b2e/limitloop-0.1.tar.gz" } ] }