在代码更改时重新启动twisted的twisted包装器
Twistr的Python项目详细描述
twister是Twisted项目的简单包装 当python文件更改时重新启动服务器的工具。
用法
从根项目目录(您的twisted/plugins文件夹所在的目录) 启动您的服务:
twistr -n <service>
甚至:
twistr <service>
现在更改当前目录中的*.py文件并监视服务器 神奇地重启。
待办事项
- configurable directory to watch for changes
- configurable file extensions to watch for changes
- use filesystem events API(s) to watch for changes