Skip to main content

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

Metadata

Release files for Py-Keyboard 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Py-Keyboard 0.0.2
File Size Uploaded
Py_Keyboard-0.0.2.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Py-Keyboard 0.0.2
File Interpreter ABI Platform
Py_Keyboard-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.2 kB

Release files / Py_Keyboard-0.0.2.tar.gz

Download URL Py_Keyboard-0.0.2.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2582b7cce8e5fd09c468c6a11960e0454eb6f58c8febb1864f6573f14bc9dfdf
BLAKE2b-256 checksum
How to use checksums
aa501f9d27b70bd6ae495185ef350897efd1ec94f1c96f283a0eca301102c16f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / Py_Keyboard-0.0.2-py3-none-any.whl

Download URL Py_Keyboard-0.0.2-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87d9fddad8d480d97ae0c9b115090dd7f952e479af479b618fd9300d789701d1
BLAKE2b-256 checksum
How to use checksums
bb3c47ef2edc89a756616ed9214c8bf8050e44d85499717acb7be1192c30c89c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page