POSIX (interval) timer for Python

timer_create(), timer_settime(), ...

...this is an incomplete binding/wrapper for the C functions of POSIX.1-2001 interval timers for Python. Of course there are other timers available for Python, like time.sleep(), signal.setitimer() + signal.pause(). Unfortunately they have no “absolute” mode. E.g. I want my program to wake up in 24h real time, independent of suspend/hibernation modes of my computer. And if I switch it back on “late” the timer should be due immediately.

The binding is my first try to work with the Python module ctypes. It allows for pure Python wrappers around dynamic loadable libraries. Very nice.

It is licensed under GPLv3 and downloadable here.


Robert.Siemer-ctypes(o)backsla.sh
29.5.2010