当你只需要发布你的python代码时。
just-ship-it的Python项目详细描述
只需将其运送至欧元
当你只需要发布你的python代码时。
相容性
Python3.6+是必需的。
安装
pip install just-ship-it
Jupyter/Colab笔记本电脑内
笔记本电脑有an issue更新版本的flask,因此如果在这些环境中工作,请强制使用旧版本。
!pip install flask==0.12.2
快速启动
只要from just_ship_it import ship_it
和ship_it()
!
# just_ship_it_example.pydefgreet(name):"""Greets you by name!"""return'Hello {name}!'.format(name=name)defhello():return{'hello':'world'}if__name__=='__main__':fromjust_ship_itimportship_itship_it()
python just_ship_it_example.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Running on http://<random-address>.ngrok.io * Traffic stats available on http://127.0.0.1:4040
您的代码现在已发送!