bigos-0.0.3
توضیحات
Do stuff on file change
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | bigos-0.0.3 |
| نام | bigos |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Pawel Stiasny |
| ایمیل نویسنده | pawelstiasny@gmail.com |
| آدرس صفحه اصلی | http://github.com/pstiasny/bigos |
| آدرس اینترنتی | https://pypi.org/project/bigos/ |
| مجوز | GPL |
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.
نحوه نصب
نصب پکیج whl bigos-0.0.3:
pip install bigos-0.0.3.whl
نصب پکیج tar.gz bigos-0.0.3:
pip install bigos-0.0.3.tar.gz