Name | NTTS JSON |
Version |
0.1.0
JSON |
| download |
home_page | https://github.com/JadyXuan/NTTS |
Summary | 还在为ctrl+C时Traceback停在time.sleep()上而感到尴尬吗?在你的项目中引入这个包吧,它会把所有的KeyboardInterrupt输出traceback信息的最后一行替换成model.py,让你的代码看起来就像是在跑一个神经网络模型一样酷炫! |
upload_time | 2024-05-18 18:56:28 |
maintainer | None |
docs_url | None |
author | JadyXuan |
requires_python | None |
license | MIT |
keywords |
ntts
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# There is No Time to Sleep
### 没时间睡觉了
还在为ctrl+C时Traceback停在time.sleep()上而感到尴尬吗?在你的项目中引入这个包吧,它会把所有的KeyboardInterrupt输出traceback信息的最后一行替换成model.py,让你的代码看起来就像是在跑一个神经网络模型一样酷炫!
Clone本项目到你的工程目录下,然后在你的入口文件代码中import它,其余的什么也不用做!
```python
import NTTS
```
然后你的代码在ctrl+C时就会给出漂亮的输出
```
Traceback (most recent call last):
File "d:/GitHub/test.py", line 14, in <module>
a()
File "d:/GitHub/test.py", line 5, in a
b()
File "d:/GitHub/test.py", line 9, in b
c()
File "C:/Users/admin/anaconda3/envs/torch/lib/site-packages/mindx/model.py", line 23, in c
Model.inference(img)
KeyboardInterrupt
```
Raw data
{
"_id": null,
"home_page": "https://github.com/JadyXuan/NTTS",
"name": "NTTS",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "NTTS",
"author": "JadyXuan",
"author_email": null,
"download_url": null,
"platform": null,
"description": "# There is No Time to Sleep\n### \u6ca1\u65f6\u95f4\u7761\u89c9\u4e86\n\u8fd8\u5728\u4e3actrl+C\u65f6Traceback\u505c\u5728time.sleep()\u4e0a\u800c\u611f\u5230\u5c34\u5c2c\u5417\uff1f\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u5f15\u5165\u8fd9\u4e2a\u5305\u5427\uff0c\u5b83\u4f1a\u628a\u6240\u6709\u7684KeyboardInterrupt\u8f93\u51fatraceback\u4fe1\u606f\u7684\u6700\u540e\u4e00\u884c\u66ff\u6362\u6210model.py\uff0c\u8ba9\u4f60\u7684\u4ee3\u7801\u770b\u8d77\u6765\u5c31\u50cf\u662f\u5728\u8dd1\u4e00\u4e2a\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u4e00\u6837\u9177\u70ab\uff01\n\nClone\u672c\u9879\u76ee\u5230\u4f60\u7684\u5de5\u7a0b\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u5728\u4f60\u7684\u5165\u53e3\u6587\u4ef6\u4ee3\u7801\u4e2dimport\u5b83\uff0c\u5176\u4f59\u7684\u4ec0\u4e48\u4e5f\u4e0d\u7528\u505a\uff01\n```python\nimport NTTS\n```\n\n\u7136\u540e\u4f60\u7684\u4ee3\u7801\u5728ctrl+C\u65f6\u5c31\u4f1a\u7ed9\u51fa\u6f02\u4eae\u7684\u8f93\u51fa\n\n```\nTraceback (most recent call last):\n File \"d:/GitHub/test.py\", line 14, in <module>\n a()\n File \"d:/GitHub/test.py\", line 5, in a\n b()\n File \"d:/GitHub/test.py\", line 9, in b\n c()\n File \"C:/Users/admin/anaconda3/envs/torch/lib/site-packages/mindx/model.py\", line 23, in c\n Model.inference(img)\nKeyboardInterrupt\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u8fd8\u5728\u4e3actrl+C\u65f6Traceback\u505c\u5728time.sleep()\u4e0a\u800c\u611f\u5230\u5c34\u5c2c\u5417\uff1f\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u5f15\u5165\u8fd9\u4e2a\u5305\u5427\uff0c\u5b83\u4f1a\u628a\u6240\u6709\u7684KeyboardInterrupt\u8f93\u51fatraceback\u4fe1\u606f\u7684\u6700\u540e\u4e00\u884c\u66ff\u6362\u6210model.py\uff0c\u8ba9\u4f60\u7684\u4ee3\u7801\u770b\u8d77\u6765\u5c31\u50cf\u662f\u5728\u8dd1\u4e00\u4e2a\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u4e00\u6837\u9177\u70ab\uff01",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/JadyXuan/NTTS"
},
"split_keywords": [
"ntts"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "27b4ce4c2c1f4b31a5a50905457d2398df0b85fda5090b2b6f17fd0f9db8677d",
"md5": "4311c201ad376e9409a62c4cb5e72b0c",
"sha256": "9a2fc79c0a3d780eeb8d4fbd375c718dd8a7b49de6662bd879bd81895922856e"
},
"downloads": -1,
"filename": "NTTS-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4311c201ad376e9409a62c4cb5e72b0c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3480,
"upload_time": "2024-05-18T18:56:28",
"upload_time_iso_8601": "2024-05-18T18:56:28.474768Z",
"url": "https://files.pythonhosted.org/packages/27/b4/ce4c2c1f4b31a5a50905457d2398df0b85fda5090b2b6f17fd0f9db8677d/NTTS-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-18 18:56:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JadyXuan",
"github_project": "NTTS",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ntts"
}