Skip to main content
https://travis-ci.org/benemery/filewatch.svg?branch=master https://coveralls.io/repos/benemery/filewatch/badge.svg?branch=master&foo=bar

FILEWATCH

Keep track of what files change and when with this super easy to use package.

Installation

Install using pip:

$ pip install filewatch

Then create and register your observer:

# your_observer.py
from filewatch import ObserverBase, file_updated_subject, Watcher

class YourObserver(ObserverBase):
    def notify(self, *args, **kwargs):
        file_list = kwargs['file_list']
        print 'These files have been updated %s' % file_list

file_updated_subject.register_observer(YourObserver())
watcher = Watcher()
watcher.run()

Then simply execute the file:

$ python your_observer.py

Now every time that a file is created / modified within your current working directory, the system will print to console which file was updated.

Download files

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

Source Distribution

filewatch-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file filewatch-0.2.0.tar.gz.

File metadata

  • Download URL: filewatch-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for filewatch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2520d5c644b05f47ee4c681143385da6239c5110f57d14e631852a6efbfbc94d
MD5 ec7b61dea1ae8f770d9d5bda01fd21ff
BLAKE2b-256 2b43ef1b1423bf4c2121718ae3fdc74a65f043266796548e16ca6fd6813d0b30

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page