AI prompts
base on NO TIME TO SLEEP # There is No Time to Sleep
### 没时间睡觉了
还在为ctrl+C时Traceback停在time.sleep()上而感到尴尬吗?在你的项目中引入这个包吧,它会把所有的KeyboardInterrupt输出traceback信息的最后一行替换成model.py,让你的代码看起来就像是在跑一个神经网络模型一样酷炫!
你只需要:`pip install NTTS`, 然后在你的入口文件代码中import它,其余的什么也不用做!
或者,如果你想使用最新的版本, Clone本项目到你的工程目录下,在项目根目录下运行:
```
pip install -e .
```
然后你的代码在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
```
如果你想实现自动导入而无需 `import NTTS`,你需要将项目根目录的ntts.pth文件拷贝到site-packages路径下。如`/home/username/anaconda3/envs/conda_env_name/lib/python3.10/site-packages/`
# Time to Sleep
### 是时候睡觉了
明天就要demo了,而你还在纠结请求处理的异步和阻塞问题?在你的项目中引入这个附属包吧!它会把traceback信息的最后一行替换成`time.sleep()`,轻松解决`确定性时延😊`,让你和你的代码都能享受24小时充足的睡眠!
```python
import NTTS.tts
```
然后你的代码在ctrl+C时就会给出漂亮的输出
```
Traceback (most recent call last):
File "/workspaces/main.py", line 11, in <module>
write()
File "/root/anaconda3/lib/python3.9/site-packages/mindx/__init__.py", line 57, in write
time.sleep(6)
KeyboardInterrupt
```
## Project Development
### build and upload pip package:
```
python setup.py bdist_wheel
twine upload dist/*
```
## 感谢支持
[![Stargazers repo roster for @JadyXuan/NTTS](https://reporoster.com/stars/JadyXuan/NTTS)](https://github.com/JadyXuan/NTTS/stargazers)
## 感谢贡献者:
<!-- readme: collaborators,contributors -start -->
<table>
<tbody>
<tr>
<td align="center">
<a href="https://github.com/JadyXuan">
<img src="https://avatars.githubusercontent.com/u/35390572?v=4" width="100;" alt="JadyXuan"/>
<br />
<sub><b>JadyXuan</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/wufei-png">
<img src="https://avatars.githubusercontent.com/u/63766429?v=4" width="100;" alt="wufei-png"/>
<br />
<sub><b>Wu Fei</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/deanyxu">
<img src="https://avatars.githubusercontent.com/u/12771139?v=4" width="100;" alt="deanyxu"/>
<br />
<sub><b>DX</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/znsoooo">
<img src="https://avatars.githubusercontent.com/u/34830785?v=4" width="100;" alt="znsoooo"/>
<br />
<sub><b>Shixian Li</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/qhy040404">
<img src="https://avatars.githubusercontent.com/u/45379733?v=4" width="100;" alt="qhy040404"/>
<br />
<sub><b>qhy040404</b></sub>
</a>
</td>
</tr>
<tbody>
</table>
<!-- readme: collaborators,contributors -end -->", Assign "at most 3 tags" to the expected json: {"id":"10240","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"