Skip to main content

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.

Source Distribution

bigos-0.0.3.tar.gz (16.6 kB view details)

Uploaded Source

File details

Details for the file bigos-0.0.3.tar.gz.

File metadata

  • Download URL: bigos-0.0.3.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bigos-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3eb751eaee9cfc3f0c1caafa435400077cf475dbca5c359242c4211644eb8056
MD5 24eb629ce1a2975928ee09b17a21adb6
BLAKE2b-256 cc73fa82c2a719eb1e13cf5203ae9786cbae1ce76114fe64c5a49affc9dbb925

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page