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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Py_Keyboard-0.0.2.tar.gz.

File metadata

  • Download URL: Py_Keyboard-0.0.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for Py_Keyboard-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2582b7cce8e5fd09c468c6a11960e0454eb6f58c8febb1864f6573f14bc9dfdf
MD5 a08517d1f28d2884f46dbfbff3b6839d
BLAKE2b-256 aa501f9d27b70bd6ae495185ef350897efd1ec94f1c96f283a0eca301102c16f

See more details on using hashes here.

File details

Details for the file Py_Keyboard-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Py_Keyboard-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for Py_Keyboard-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87d9fddad8d480d97ae0c9b115090dd7f952e479af479b618fd9300d789701d1
MD5 64cf50e86a1a7af3c7b7978e71bd5f67
BLAKE2b-256 bb3c47ef2edc89a756616ed9214c8bf8050e44d85499717acb7be1192c30c89c

See more details on using hashes here.

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