Metadata-Version: 2.1
Name: pysignalfd
Version: 0.0.1
Summary: A pure Python wrapper of signalfd(2)
Home-page: https://github.com/jschwinger23/pysignalfd
Author: lzc
Author-email: greyschwinger@gmail.com
License: BSD
Description: # pysignalfd
        
        A pure Python wrapper of [signalfd(2)](https://man7.org/linux/man-pages/man2/signalfd.2.html).
        
        # Installation
        
        ```shell
        pip install pysigalfd
        ```
        
        # Usage
        
        ```python
        import signal
        import pysignalfd
        
        
        sigs = [signal.SIGTERM, signal.SIGHUP]
        signal.pthread_sigmask(signal.SIG_BLOCK, sigs)
        fd = pysignalfd.signalfd(sigs, CLOEXEC=True, NONBLOCK=False)
        for signum in pysignalfd.parse_siginfo(fd):
            print(signum)
        ```
        
        # Similar Tools
        
        1. [python-signalfd](https://pypi.org/project/python-signalfd/)
        2. [signalfd](https://pypi.org/project/signalfd/)
        
        Both module relies on "Python.h" to extend, by which there is a concern that installation might fail on the disparate Linux environments.
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Utilities
Requires-Python: >=3.5
Description-Content-Type: text/markdown
