Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Do stuff on file change

Project description

Bigos - do stuff on file change

Use the on decorator to run tasks when matching files are modified:

from bigos import on, main

@on(r'^[^/]*/([^.][^/]*\/)*[^.][^/]*$')
def non_dotfile_task(ev):
    print 'file event:', ev.path

if __name__ == '__main__':
    main('.')

Use the backend to get the raw event stream:

from bigos.backend import generate_events

for event_list in generate_events():
    print event_list

Installation

pip install bigos

Supported platforms

  • On modern Linux kernels bigos will use a ctypes inotify wrapper
  • Other systems are supported via a filesystem polling backend

License

Copyright (C) 2014 Paweł Stiasny

Bigos is released under the GNU General Public License, see COPYING for details.

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 bigos, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size bigos-0.0.3.tar.gz (16.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page