File: deviceInfo.py

package info (click to toggle)
fenrir 1.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,672 kB
  • sloc: python: 10,700; sh: 387; makefile: 12
file content (4 lines) | stat: -rwxr-xr-x 162 bytes parent folder | download | duplicates (4)
1
2
3
4
from pyudev import Context
context = Context()
for device in context.list_devices(subsystem='input'):
    '{0} - {1}'.format(device.sys_name, device.device_type)