## interval-timer-python
### overview
- interval timer library for python
- on Windows: Waitable Timer wrapper
- on Linux: timerfd wrapper
### OS
- Windows & Linux
### installation
```bash
python -m pip install interval-timer-python
```
### usage
```python
import interval_timer
INTERVAL_TIME_MS = 100
itimer = interval_timer.IntervalTimer()
itimer.settime(INTERVAL_TIME_MS)
while True:
print("Hello,World!")
itimer.wait() # periodic blocking
```
Raw data
{
"_id": null,
"home_page": "https://github.com/tkshkwn/interval-timer-python",
"name": "interval-timer-python",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "timer,periodic,interval,timerfd",
"author": "tkshkwn",
"author_email": "nekotk37@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/52/3a/9d1fce133eda317b223a75009915f08652e4535303bd782041e50fcf5933/interval-timer-python-0.1.2.tar.gz",
"platform": null,
"description": "## interval-timer-python\r\n\r\n### overview\r\n- interval timer library for python\r\n - on Windows: Waitable Timer wrapper\r\n - on Linux: timerfd wrapper\r\n\r\n### OS\r\n- Windows & Linux\r\n\r\n### installation\r\n```bash\r\npython -m pip install interval-timer-python\r\n```\r\n\r\n### usage\r\n```python\r\nimport interval_timer\r\n\r\nINTERVAL_TIME_MS = 100\r\nitimer = interval_timer.IntervalTimer()\r\nitimer.settime(INTERVAL_TIME_MS)\r\nwhile True:\r\n print(\"Hello,World!\")\r\n itimer.wait() # periodic blocking\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT-License",
"summary": "interval-timer for python: Windows:waitabletimer wrapper, Linux:timerfd wrapper",
"version": "0.1.2",
"split_keywords": [
"timer",
"periodic",
"interval",
"timerfd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "523a9d1fce133eda317b223a75009915f08652e4535303bd782041e50fcf5933",
"md5": "cff39a9548b4458ab288b77e3606dbab",
"sha256": "b0ec298ed266b3b30713699a827a8e56ee371e9cb2203cd7e4c4ef3c79187983"
},
"downloads": -1,
"filename": "interval-timer-python-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "cff39a9548b4458ab288b77e3606dbab",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3988,
"upload_time": "2023-03-13T12:52:12",
"upload_time_iso_8601": "2023-03-13T12:52:12.699796Z",
"url": "https://files.pythonhosted.org/packages/52/3a/9d1fce133eda317b223a75009915f08652e4535303bd782041e50fcf5933/interval-timer-python-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-13 12:52:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "tkshkwn",
"github_project": "interval-timer-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "interval-timer-python"
}