Pythonic API to Linux uinput kernel module.
Python-uinput is Python interface to Linux uinput kernel module which allows attaching userspace device drivers into kernel. In practice, Python-uinput makes it dead simple to create virtual joysticks, keyboards and mice for generating arbitrary input events programmatically.
You need to have uinput kernel module loaded to be able to emit input events. If it is not yet loaded in your system, load it by running:
To load it automatically on every boot, add uinput to /etc/modules.
Then building and installing Python-uinput is just a matter of running:
python setup.py build python setup.py install
Alternatively, you can use tools such as pip or easy_install to install Python-uinput from Python Package Index:
pip install python-uinput