Recently I have released Python bindings for the timer file descriptor available in Linux (pytimerfd).
Now I can present the Python package “linuxfd”, which offers Python bindings for the Linux system calls eventfd, signalfd and timerfd. It is available at pypi.python.org and at GitHub:
With “eventfd” it is possible to define counter files that are increased, decreased and reset via read and write operations. As long as the counter is zero, any read operation fails with EAGAIN or blocks. The syscall “signalfd” creates a signal file object which becomes readable when a user-defined set of signals (e.g. SIGINT) are received. Reading a signal file object returns an info structure of the last signal received. If no signals are pending, a read operation either fails with EAGAIN or blocks.