Metadata-Version: 2.4
Name: smartwatch-automator
Version: 0.1.0
Summary: A configurable file watcher and automator
Project-URL: Homepage, https://github.com/charvey-acgi/smartwatch-automater
Project-URL: Issues, https://github.com/charvey-acgi/smartwatch-automater/issues
Author-email: Chad Harvey <harveyca@gmail.com>
License: MIT
Keywords: automation,cli,file-watcher,watchdog
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: typer>=0.12.0
Requires-Dist: watchdog>=4.0.0
Description-Content-Type: text/markdown

# 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
```bash
pip install smartwatch-automator
```

## Quick Start

Create a `config.yaml`:
```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:
```bash
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