Skip to main content

Python wrapper for the libfswatch

Project description

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)
...

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

fswatch-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

fswatch-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file fswatch-0.1.1.tar.gz.

File metadata

  • Download URL: fswatch-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for fswatch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 778f2e1c0303f7a2e9b28ed94df1e49c8ab3f74d5521e20a38fb722fe7c7a5af
MD5 f07c159208163a87d8fc1762ced74103
BLAKE2b-256 6e79cebf5f36535e877ff6684fe9c1a3f6f571e7667e3a0b04ac6e41f64614bc

See more details on using hashes here.

File details

Details for the file fswatch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fswatch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for fswatch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2aa0f7b7d29d30c874b42a5e22f2e0057046fd313ba1e1b8347529922d1d9d
MD5 2f1f76414354834e02bedabdbc75d59f
BLAKE2b-256 cb44771c610f146d00e97d0a2b1cdf3418fa68a65a4e44c2e784378b639d8232

See more details on using hashes here.

Supported by

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