Settings

Theme

Watchfiles: Simple, modern and fast file watching for Python, written in Rust

github.com

33 points by Labo333 10 months ago · 4 comments

Reader

alkh 10 months ago

There is also watchexec[1]. I like the fact that is it shipped as a sinle binary, so it's pretty easy to distribute [1]https://github.com/watchexec/watchexec

  • nodesocket 10 months ago

    Thanks for posting watchexec. Exactly what I needed for my gunicorn +gevent app. gevent does not support the --reload gunicorn flag.

Zaloog 10 months ago

Awesome library, I use it in ayu (https://github.com/Zaloog/ayu) to watch for changes in test files, to automatically rerun those tests.

spease 10 months ago

There are some big caveats to this approach. Note “Known Problems” for the library. Particularly, you need to use a polling backend for network / VM filesystems. I didn’t see any notes for the Python library and the fact that notify is still telling you this makes me suspect it will just fail to work in those cases.

https://docs.rs/notify/latest/notify

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection