gvalkov / python-evdev

Python bindings for the Linux input subsystem
https://python-evdev.rtfd.org/
BSD 3-Clause "New" or "Revised" License
322 stars 108 forks source link

Add an example of serialization #56

Open mncharity opened 8 years ago

mncharity commented 8 years ago

Serialization might be a good topic for the tutorial, or for a simple examples/uinput-serialize.py.

For inspiration, there is https://github.com/MerlijnWajer/uinput-mapper , which can send pickled device capabilities and events between machines. input-read /dev/input/event1 | ssh somewhere input-create

gvalkov commented 8 years ago

Interesting. At one time I started working on an evpipe tool that was supposed to offer exactly this functionality (i.e. evpipe read <devices> | evpipe write). I'll look into it when I get more time to work on python-evdev.

Thanks for the suggestion.