Skip to main content

Python wrapper for the libfswatch

Project description

Python fswatch

Python 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.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

fswatch-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fswatch-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a4baedb0641742a57b8df764d22a8dbe3ae23e40c5f3fbb2427093362523e298
MD5 d1b550e6d75ccba170e4ef55559dc5a8
BLAKE2b-256 5c59ed53cf821a38b0dce0b7bf68a0f44c2ecfcc4f1175c7f87e26d681e9e4e1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fswatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 142e8f0315e5c6ed307424b13d511951d2586554dd129d8de5d231e307b8cc3a
MD5 a9b886ebff3afa75abfbf7f301a6ee59
BLAKE2b-256 e79cf1380762377b79fc9d6ffe95b63b7367b7f47fe2264a24cbe353e8c41b67

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