Python utility to watch the file modification only.
Project description
📄 Overview
Python utility to watch the file modification. There are similar libraries: pyinotify, watchdog. These libraries watch the file system event, but JustWatch is supported modification only.
✏️ Usage
quick start
First of all, import classes from justwatch:
from justwatch import WatchManager, Observer
make WatchManager instance and add file or directory:
manager = WatchManager()
manager.add_file("./README.md")
manager.add_dir("./tests")
make Observer instance and set callback:
observer = Observer(manager)
@observer.set_callback
def callback(item):
print "Catch the modification of '{0}'".format(item.path)
and run observer.watch
observer.watch()
example
📥 Installation
$ git clone git@github.com:alice1017/JustWatch.git $ cd JustWatch $ python setup.py build install
TODO: I will upload pypi registry.
👀 Contribution
Forks on Github
Find a bug? Send a pull request to get it merged and published.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file just-watch-1.0.0b1.tar.gz.
File metadata
- Download URL: just-watch-1.0.0b1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10130481dfca382b8bf7b1c68babd6090229aa94da79602ec3edcc484d4860ed
|
|
| MD5 |
7762b6810ae53c2ce63408e62e96b0c1
|
|
| BLAKE2b-256 |
021b747969b656549a292675d3628e6d88a3a1fd346c0d18e830f6f34f0691cc
|
File details
Details for the file just_watch-1.0.0b1-py2.7.egg.
File metadata
- Download URL: just_watch-1.0.0b1-py2.7.egg
- Upload date:
- Size: 7.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48a30fb7e2ad2d950af29b8657e5a73e639996b58a84fd44892e0ef46a07b78
|
|
| MD5 |
309f2f0fa4177cf034893b9f48a8b89f
|
|
| BLAKE2b-256 |
ad9869896d114498d08a9b14d0bb0e972b0eed3993572a30b38776ab89bee75c
|