支持实时编码的简单库
live的Python项目详细描述
一个简单的库来支持python中的实时编码。 模仿livecoder.net中的成语。
快速启动
从pypi安装livecoder:
pip install live
使用您喜爱的编辑器打开一个示例文件:
git clone git@github.com:fritzo/livecoder # grab an example vi livecoder/examples/datadiff.py # open in your favorite editor
告诉live观看脚本:
cd livecoder/examples # move to where script is importable live datadiff.py # and watch output for errors
每次保存脚本时,live都会重新加载并更新实时编码 国家。 您可能需要设置编辑器,以便在每次击键后保存,或者 每秒保存一次。 例如,在vim 7.4+中,每次修改后都可以使用:
autocmd TextChanged,TextChangedI <buffer> write