Skip to main content

Filesystem events watcher

Project description

pytest

spy

Filesystem events watcher in Python based on Watchdog

Usage

usage: Spy catches files changes and react with custom commands
       [-h] [--watch-dir WATCH_DIR] [--recursive RECURSIVE]
       [--on-create ON_CREATE] [--on-change ON_CHANGE] [--on-remove ON_REMOVE]
       [--extensions EXTENSIONS] [--timeout TIMEOUT]

optional arguments:
  -h, --help                            Show this help message and exit
  --watch-dir WATCH_DIR, -w WATCH_DIR   The directory to watch
  --recursive RECURSIVE, -r RECURSIVE   Whether to watch the subdirectories
  --on-create ON_CREATE                 Command to execute when a file is created inside the directory
  --on-change ON_CHANGE                 Command to execute on directory changes
  --on-remove ON_REMOVE                 Command to execute when a file is deleted from the directory
  --extensions EXTENSIONS               Comma separated list of extension file to track
  --timeout TIMEOUT                     Timeout in seconds for Spy to watch the directory (-1 is infinite)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fsspy-1.0.2.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

fsspy-1.0.2-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page