Watch files and directories in python. Also supports tailing and glob file patterns.
Project description
# filewatch
## Getting Started
* python setup.py installer
* globtail -x '*.gz' '/var/log/*'
For developers, see filewatch.watch.Watch and filewatch.tail.Tail.
Tested on Linux/x86_64 and Mac OS/X.
All operating systems should be supported. If you run the tests on
another platform, please open a Github issue with the output (even
if it passes, so we can update this document).
## Overview
This project provide file and glob watching.
It is a re-implementation in python of the excellent
ruby-filewatch package
(https://github.com/jordansissel/ruby-filewatch)
Goals:
* to provide a python api to get notifications of file or glob changes
Example code (standalone):
from filewatch.tail import Tail
def func(path, line):
print "%s: %s" % (path, line)
t = Tail()
t.tail("/tmp/test*.log")
t.subscribe(func)
## Getting Started
* python setup.py installer
* globtail -x '*.gz' '/var/log/*'
For developers, see filewatch.watch.Watch and filewatch.tail.Tail.
Tested on Linux/x86_64 and Mac OS/X.
All operating systems should be supported. If you run the tests on
another platform, please open a Github issue with the output (even
if it passes, so we can update this document).
## Overview
This project provide file and glob watching.
It is a re-implementation in python of the excellent
ruby-filewatch package
(https://github.com/jordansissel/ruby-filewatch)
Goals:
* to provide a python api to get notifications of file or glob changes
Example code (standalone):
from filewatch.tail import Tail
def func(path, line):
print "%s: %s" % (path, line)
t = Tail()
t.tail("/tmp/test*.log")
t.subscribe(func)
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
pyfilewatch-0.0.2.tar.gz
(5.6 kB
view hashes)
Built Distributions
pyfilewatch-0.0.2-py2.7.egg
(13.1 kB
view hashes)
Close
Hashes for pyfilewatch-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d7264fe28f76aaaa3a5c162a66d1f7b936100121784388ecff045b202a82648 |
|
MD5 | c0791a788b1763f38631a6537fdcdf61 |
|
BLAKE2b-256 | a711823ef7d2c8fd9ea1e336c1f04e2030c309371666a6cd7e9f19a95b1574db |