### Install pyfanotify from source Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/install.rst Clone the repository and run the setup script to install the package from source code. ```sh $ git clone https://github.com/baskiton/pyfanotify.git $ cd pyfanotify $ python setup.py install ``` -------------------------------- ### Install pyfanotify via pip Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/install.rst Use this command to install the latest version of pyfanotify from the Python Package Index. ```sh $ pip install pyfanotify ``` -------------------------------- ### FanotifyClient Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/module.rst Client class for managing fanotify connections. ```APIDOC ## FanotifyClient ### Description Client implementation for handling fanotify communication. ``` -------------------------------- ### Fanotify Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/module.rst The primary class for interacting with the fanotify system. ```APIDOC ## Fanotify ### Description Main interface for the fanotify system. Requires root privileges to execute. ### Usage Instantiate this class to begin monitoring filesystem events. ``` -------------------------------- ### FanotifyData Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/module.rst Data structure representing a captured fanotify event. ```APIDOC ## FanotifyData ### Attributes - **fd** (int): File descriptor if passed, -1 otherwise. - **pid** (int): PID of the process that caused the event. - **ev_types** (int): Event types of the fanotify event. - **exe** (str): EXE of the process that caused the event, or None. - **cwd** (str): CWD of the process that caused the event, or None. - **path** (str): PATH of the file involved in the event, or None. ``` -------------------------------- ### FanoRule Source: https://github.com/baskiton/pyfanotify/blob/main/docs/source/module.rst Class used to define filtering rules for fanotify events. ```APIDOC ## FanoRule ### Description Defines specific rules for filtering events captured by the fanotify system. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.