A library for monitoring files and directories for changes
The python package for monitoring files and directories provides a fast and efficient way to detect changes to files and directories. It is particularly small and resource-efficient, making it ideal for use in environments with limited resources. The package is also easy to integrate and can be effortlessly incorporated into existing projects. It provides icomprehensive documentation to get you started. Overall, our Python package for monitoring files and directories is a powerful and reliable choice for anyone who wants to monitor changes to files and directories.
python3 -m pip install --user pyfilewatcherDownload the folder from https://github.com/bbenouarets/pyfilewatcher/tree/main/src/pyfilewatcher and copy it into your project into the folder modules.
Then you can import the package via from modules.pyfilewatcher import Observer.
from pyfilewatcher import Observer
locations = [
"test"
]
observer = Observer()
observer.watch(locs=locations)from modules.pyfilewatcher import Observer
locations = [
"test"
]
observer = Observer()
observer.watch(locs=locations)Following handler has integrated:
- Log file
- MySQL database
- HTTP Endpoint (e.g. API)