Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ffy00/python-uhid

Pure Python typed Linux UHID wrapper
https://github.com/ffy00/python-uhid

hacktoberfest hid linux python uhid usb-hid usbhid

Last synced: 30 days ago
JSON representation

Pure Python typed Linux UHID wrapper

Awesome Lists containing this project

README

        

# python-uhid

![checks](https://github.com/FFY00/python-uhid/workflows/checks/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/python-uhid/badge/?version=latest)](https://python-uhid.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/uhid.svg)](https://pypi.org/project/uhid/)

Pure Python typed UHID wrapper.

Supported backends:
- Blocking IO + epoll
- Uses the epoll API to watch the UHID file descriptor for input events
- asyncio blocking IO
- Uses asyncio reader and writer tasks
- trio
- Async API built on top of trio

See the [examples folder](https://github.com/FFY00/python-uhid/tree/master/examples) for example snippets of each backend.

UHID is a Linux API to create virtual HID devices.
See the [official UHID documentation](https://www.kernel.org/doc/Documentation/hid/uhid.txt).