Metadata-Version: 2.1
Name: filewatchdog
Version: 0.0.1
Summary: Runs Python functions once a certain file is created or modified. 
Author: BeginnerSC
License: MIT
Keywords: watcher,listener,watchdog,filewatchdog
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Natural Language :: English
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# FileWatchdog

Runs Python functions once a certain file is created or modified. 

## Installation

```sh
pip install filewatchdog
```

## Usage

```py
import filewatchdog as watcher
import time

def job():
    print("I'm working...")

files = ['C:/Temp/1.txt', 'C:/Temp/2.txt', 'C:/Temp/3.txt']

watcher.once().one_of(files).modified.do(job)
watcher.once().all_of(files).exist.do(job)

while True:
    watcher.run_pending()
    time.sleep(1)
```
