Python fswatch
Cross-platform filesystem event monitor for Python.
This is wrapper for the libfswatch
Install
brew install fswatch
pip install fswatch
Usage
from fswatch import Monitor
monitor = Monitor()
monitor.add_path("/tmp/test/")
def callback(path, evt_time, flags, flags_num, event_num):
print(path.decode())
monitor.set_callback(callback)
monitor.start()
Low level functions can be accessed via libfswatch module.
It is implemented one to one with this header file
from fswatch import libfswatch
libfswatch.fsw_init_library()
handle = fsw_init_session(0)
...
Release files for fswatch 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fswatch-0.1.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fswatch-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / fswatch-0.1.1.tar.gz
| Download URL | fswatch-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
778f2e1c0303f7a2e9b28ed94df1e49c8ab3f74d5521e20a38fb722fe7c7a5af
|
|
BLAKE2b-256 checksum How to use checksums |
6e79cebf5f36535e877ff6684fe9c1a3f6f571e7667e3a0b04ac6e41f64614bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Release files / fswatch-0.1.1-py3-none-any.whl
| Download URL | fswatch-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd2aa0f7b7d29d30c874b42a5e22f2e0057046fd313ba1e1b8347529922d1d9d
|
|
BLAKE2b-256 checksum How to use checksums |
cb44771c610f146d00e97d0a2b1cdf3418fa68a65a4e44c2e784378b639d8232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|