Skip to main content

Watch files and directories in python. Also supports tailing and glob file patterns.

Project description

# filewatch

## Getting Started

* python installer
* globtail -x '*.gz' '/var/log/*'

For developers, see 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


* 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()

Project details

Download files

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

Files for pyfilewatch, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyfilewatch-0.0.3-py2.7.egg (13.1 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size pyfilewatch-0.0.3-py2.py3-none-any.whl (8.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pyfilewatch-0.0.3.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page