Name | shhhinterrupt JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Handles keyboard interrupt silently and gracefully |
upload_time | 2024-12-16 15:27:44 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
bar
foo
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# shhhinterrupt
Gracefully and shhh... _(silently)_ handles keyboard interrupts.
You can either pass a string to print, e.g. `@handle_interrupt("Please come again.")` or you can use the decorator without parentheses to use the default message `@handle_interrupt`.
Full example:
from shhhinterrupt import handle_interrupt
import time
@handle_interrupt("He walked away.")
def main():
print("What's your name?")
time.sleep(5)
print("Tony!")
if __name__ == "main":
main()
Raw data
{
"_id": null,
"home_page": null,
"name": "shhhinterrupt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Robert Dusk <robert@dusk.monster>",
"keywords": "bar, foo",
"author": null,
"author_email": "Robert Dusk <robert@dusk.monster>",
"download_url": "https://files.pythonhosted.org/packages/29/d0/9b19a54acb004d188273fed51adfeba2e78516ef7a1c17442f690e2b2930/shhhinterrupt-0.1.0.tar.gz",
"platform": null,
"description": "# shhhinterrupt\n\nGracefully and shhh... _(silently)_ handles keyboard interrupts.\n\nYou can either pass a string to print, e.g. `@handle_interrupt(\"Please come again.\")` or you can use the decorator without parentheses to use the default message `@handle_interrupt`.\n\nFull example:\n\n from shhhinterrupt import handle_interrupt\n import time\n \n @handle_interrupt(\"He walked away.\")\n def main():\n print(\"What's your name?\")\n time.sleep(5)\n print(\"Tony!\")\n\n if __name__ == \"main\":\n main()\n",
"bugtrack_url": null,
"license": null,
"summary": "Handles keyboard interrupt silently and gracefully",
"version": "0.1.0",
"project_urls": {
"homepage": "https://github.com/RobertDusk/py-shhhinterrupt"
},
"split_keywords": [
"bar",
" foo"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bb7a2328c1eb392c8334e7dd3ce4a9c7532579d27202f98d96e36b73a9c3d2dd",
"md5": "1fc049ad10b84beb846f4bccf67dbb35",
"sha256": "461a8f57caab5d7f1f06e7c0b257c65c9c2285387908ff15da2c2688090a6853"
},
"downloads": -1,
"filename": "shhhinterrupt-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1fc049ad10b84beb846f4bccf67dbb35",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 2000,
"upload_time": "2024-12-16T15:27:43",
"upload_time_iso_8601": "2024-12-16T15:27:43.405044Z",
"url": "https://files.pythonhosted.org/packages/bb/7a/2328c1eb392c8334e7dd3ce4a9c7532579d27202f98d96e36b73a9c3d2dd/shhhinterrupt-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "29d09b19a54acb004d188273fed51adfeba2e78516ef7a1c17442f690e2b2930",
"md5": "cf3675a0bad5e34784a3861395fc9e81",
"sha256": "8ad07d91c7a5a2cfec4ebb7273bc7902828f9aa85f7728658042b30cec55f0c2"
},
"downloads": -1,
"filename": "shhhinterrupt-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "cf3675a0bad5e34784a3861395fc9e81",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2139,
"upload_time": "2024-12-16T15:27:44",
"upload_time_iso_8601": "2024-12-16T15:27:44.719618Z",
"url": "https://files.pythonhosted.org/packages/29/d0/9b19a54acb004d188273fed51adfeba2e78516ef7a1c17442f690e2b2930/shhhinterrupt-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-16 15:27:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RobertDusk",
"github_project": "py-shhhinterrupt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "shhhinterrupt"
}