Comments (1)
Hi, thanks for the question.
Regarding RegExpWatcher
, it seems to be working fine for me, here's an example that matches any file ending .txt
:
from watchgod import watch, RegExpWatcher
for changes in watch('./tests', watcher_cls=RegExpWatcher, watcher_kwargs=dict(re_files=r'.*\.txt', re_dirs='.*')):
for status, location in changes:
print(status, location)
Unfortunately, the re_files
and re_dirs
arguments are both required which they shouldn't be, but other than that it's all working.
Another thing, yesterday when I was monitoring a directory with watchgod, I noticed that it suddenly began to report all the files being in that certain directory. But those files were not modificated, created, copied, etc during the monitoring time.
I haven't seen this before, if you get the issue again and can explain it please create an issue with OS details etc.
from watchfiles.
Related Issues (20)
- IDEA: manually or force restart HOT 1
- The watchfiles tarball released on PyPi do not include `Cargo.lock` HOT 5
- High CPU usage in version 0.16.1 watching python files HOT 6
- FileNotFoundError when using run_process - Windows HOT 1
- Bug in RustNotify causing RuntimeError: Already borrowed on exit/signal HOT 5
- Tracking file rename HOT 7
- "process already dead, exit code: 0" echoed in console HOT 1
- Build Failes on piwheels.org HOT 2
- `FileNotFoundError` during development HOT 11
- Make set_version.py compatible with Cargo.lock HOT 1
- Problems when using vim - `Remove(File)` event when saving the file HOT 3
- How do i watch for all type of files or how do i specify the kind of files i want to watch ? HOT 2
- Orphan process left over after SIGTERM under multiprocessing.Manager
- Poetry causes that WhachFiles fails in FastApi+Uvicorn scenario. HOT 1
- Support more wheels for other Python version (3.10, 3.11) HOT 2
- [Question] Why does this not work? HOT 2
- Watch not reacting inside of docker, but run_process does HOT 1
- Do not run the callback when `watchfiles` starts up HOT 3
- Track file modifications HOT 3
- Watchfiles not working without force_pulling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchfiles.