Skip to main content

Python wrapper for hid device

Project description

Python HID USB emulator

Python Wrapper for emulating a HID USB device for the raspi zero w

setup from https://randomnerdtutorials.com/raspberry-pi-zero-usb-keyboard-hid/

git repo

pip3 install git+https://github.com/Danny-Dasilva/Py_Keyboard.git

on a brand new pi zero w

git clone https://github.com/Danny-Dasilva/Py_Keyboard.git

in Py_Keyboard folder

source install.sh

example.py

from Py_Keyboard.HID import Keyboard

kbd = Keyboard()

kbd.press("CONTROL ALT T")

kbd.write('ls\n')

to do

keycodes = layout.keycodes('$')

Test pip package import

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Py_Keyboard-0.0.2.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

Py_Keyboard-0.0.2-py3-none-any.whl (20.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page