{"id":24746588,"url":"https://github.com/samuelmarks/watchdog_exec","last_synced_at":"2025-03-23T01:23:03.806Z","repository":{"id":150265502,"uuid":"48687036","full_name":"SamuelMarks/watchdog_exec","owner":"SamuelMarks","description":"Cross-platform (Python) CLI way to execute command on fs event","archived":false,"fork":false,"pushed_at":"2015-12-28T10:48:16.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T01:22:16.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamuelMarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-28T10:21:20.000Z","updated_at":"2019-12-28T18:17:52.000Z","dependencies_parsed_at":"2023-04-17T01:48:15.168Z","dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/watchdog_exec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwatchdog_exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwatchdog_exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwatchdog_exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fwatchdog_exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/watchdog_exec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235964803,"owners_count":19073477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-28T04:29:29.621Z","updated_at":"2025-01-28T04:29:34.995Z","avatar_url":"https://github.com/SamuelMarks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"watchdog_exec\n=============\n\nCross-platform command-line execute-on-fs-event tool.\n\n## Install\nWritten+tested with Python 2.7, but would probably work unedited on Python 3:\n\n    pip install https://github.com/SamuelMarks/watchdog_exec/archive/master.zip#egg=watchdog_exec\n\n## Example runs\n\nOn fs event involving files and folders in current directory, run `echo $src $dst` command, unless it the fs event is modified, then run `python $src` command.\n\n    python -m watchdog_exec . --execute echo --modified python\n\nUsing short arguments, and restricting to only execute when events involve \"__main__.py\":\n\n    python -m watchdog_exec . -e echo -a echo -s __main__.py\n\n\n## Usage\n\n    usage: python -m watchdog_exec [-h] -e EXEC [-m MOVED] [-c CREATED] [-d DELETED]\n                                   [-a MODIFIED] [-f] [-g] [-s SPECIFIC_FILE]\n                                   directory\n    \n    Execute command on fs event\n    \n    positional arguments:\n      directory             Directory\n    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -e EXEC, --exec EXEC  Execute fallback\n      -m MOVED, --moved MOVED\n                            Execute on fs moved event\n      -c CREATED, --created CREATED\n                            Execute on fs created event\n      -d DELETED, --deleted DELETED\n                            Execute on fs deleted event\n      -a MODIFIED, --modified MODIFIED, --altered MODIFIED\n                            Execute on fs modified event\n      -f, --file-only       Execute only on file fs events fs\n      -g, --directory-only  Execute only on file fs events fs\n      -s SPECIFIC_FILE, --specific-file SPECIFIC_FILE\n                            Execute only on events involving this file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fwatchdog_exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fwatchdog_exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fwatchdog_exec/lists"}