新 LiveReload

最近在重构 LiveReload 这个库,打算把它从应用改成库。

https://github.com/lepture/python-livereload/issues/47

from livereload import Server

server = Server(wsgi_app)
# run a shell command
server.watch('static/*.stylus', 'make static')
# run a function
server.watch('foo.txt', lambda: print('foo'))
server.serve()
11 comments