Skip to content

bbenouarets/pyfilewatcher

Repository files navigation

pyFileWatcher

pyFileWatcher


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.

Installation

pip

python3 -m pip install --user pyfilewatcher

Manual

Download 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.

Example

pip installation

from pyfilewatcher import Observer

locations = [
    "test"
]

observer = Observer()
observer.watch(locs=locations)

Manual installation

from modules.pyfilewatcher import Observer

locations = [
    "test"
]

observer = Observer()
observer.watch(locs=locations)

Handler

Following handler has integrated:

  • Log file
  • MySQL database
  • HTTP Endpoint (e.g. API)

About

A library for monitoring files and directories for changes

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published