一组常用的python代码片段
py-toolbox的Python项目详细描述
这是我发现自己要使用的有用片段的集合 定期进行原型制作。
大多数函数在处理 通过Jupyter笔记本的远程机器(例如JupyterHub) 具有长期运行的流程(例如深度学习)。
检查Quickstart部分以了解常见用例和 示例代码。
View the complete documentation
快速启动
- Monitor long running tasks and get notified by email if something goes wrong or the job has finished
- Debug Remotely over a TCP connection
- Load Jupyter Notebooks as Python Modules
- Reload modules when importing again (do not cache the result)
- Mirroring all output of a script to a file
- Flexibly test a number possible configurations of a function
- Automatically configure the framework
- Configure defaults
安装
通过PIP:
pip install py-toolbox
或通过distutils:
git clone https://github.com/dangrie158/py-toolbox.git pytb cd pytb python setup.py install
开发
克隆repo并安装开发需求。 在此之后,您可以在开发模式下安装包 只需将源链接到python路径。
git clone https://github.com/dangrie158/py-toolbox.git pytb cd pytb direnv allow # if you're not using direnv, you really should # otherwise create a new virtualenv for the package pip install -r dev-requirements.txt python3 setup.py develop make test