New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fswatch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fswatch

Python wrapper for the libfswatch

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc