Skip to main content

A configurable file watcher and automator

Project description

smartwatch-automator

A configurable file watcher and automator for Windows, Mac and Linux. Watch directories and automatically trigger actions (copy, move, run scripts) when files change.

Installation

pip install smartwatch-automator

Quick Start

Create a config.yaml:

watch:
  - path: "/your/directory"
    recursive: true
    rules:
      - name: "Backup CSVs"
        patterns: ["*.csv"]
        on_events: ["created", "modified"]
        action:
          type: copy
          destination: "/your/backup"

Then run:

smartwatch --config config.yaml --verbose

Actions

Action Description
log Log file events to console
copy Copy file to destination
move Move file to destination
run Run a shell command ({file} = file path)

Options

--config    Path to config YAML (default: config.yaml)
--dry-run   Preview actions without executing
--verbose   Show debug output

License

MIT

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

smartwatch_automator-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartwatch_automator-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file smartwatch_automator-0.1.0.tar.gz.

File metadata

  • Download URL: smartwatch_automator-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for smartwatch_automator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c7a872b6934848fcc58c66c1207f4f537d44603eeb6eff98944168dfc39f9fb
MD5 388083675cc244f0760d89ab131c4c89
BLAKE2b-256 5d84acaa7c4ba2c4e7c0d09422fe4511f39200c0912f68386aeab3eeb5439d67

See more details on using hashes here.

File details

Details for the file smartwatch_automator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smartwatch_automator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ccd68d08d01a0d4cd5523eb7a694da28ed097129ef964d2f778bd5ec80c85b
MD5 b897474c20540ad3fcac25a3908efe54
BLAKE2b-256 88ad6ede40af33c93cbb15c87e0b5b55e3fb0dff9b17969b54a034d368ae16cb

See more details on using hashes here.

Supported by

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