{"id":22132911,"url":"https://github.com/danny-dasilva/py_keyboard","last_synced_at":"2025-07-25T20:31:34.204Z","repository":{"id":62581254,"uuid":"208350033","full_name":"Danny-Dasilva/Py_Keyboard","owner":"Danny-Dasilva","description":"Python wrapper for hid device on the pi zero w","archived":false,"fork":false,"pushed_at":"2022-04-21T19:11:09.000Z","size":126,"stargazers_count":19,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T03:14:51.850Z","etag":null,"topics":["hid","keyboard","raspberry-pi","raspberry-pi-zero-w","usb","usb-hid"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Danny-Dasilva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-13T21:33:41.000Z","updated_at":"2024-06-22T17:04:58.000Z","dependencies_parsed_at":"2022-11-03T22:01:14.391Z","dependency_job_id":null,"html_url":"https://github.com/Danny-Dasilva/Py_Keyboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny-Dasilva%2FPy_Keyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny-Dasilva%2FPy_Keyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny-Dasilva%2FPy_Keyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny-Dasilva%2FPy_Keyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danny-Dasilva","download_url":"https://codeload.github.com/Danny-Dasilva/Py_Keyboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227614656,"owners_count":17793946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hid","keyboard","raspberry-pi","raspberry-pi-zero-w","usb","usb-hid"],"created_at":"2024-12-01T18:51:28.008Z","updated_at":"2024-12-01T18:51:28.606Z","avatar_url":"https://github.com/Danny-Dasilva.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Python HID USB emulator\n\nPython Wrapper for emulating a HID USB device for the raspi zero w\n\nsetup from  https://randomnerdtutorials.com/raspberry-pi-zero-usb-keyboard-hid/\n\n\n\n## git repo\n\n`pip3 install git+https://github.com/Danny-Dasilva/Py_Keyboard.git`\n## on a brand new pi zero w\n\n\n`git clone https://github.com/Danny-Dasilva/Py_Keyboard.git`\n\nin Py_Keyboard folder\n\n`source install.sh`\n\n\nexample.py\n\n\n```python\n\n\n\nfrom Py_Keyboard.HID import Keyboard\n\nkbd = Keyboard()\n\nkbd.press(\"CONTROL ALT T\")\n\nkbd.write('ls\\n')\n\n\n\n```\n\n### Editing \nAll write operations are done inside the `send_report` function inside `Py_Keyboard\u003eHID.py`\n\nbytes written can be returned from the press and write function\n\n```python\n\n\nfrom Py_Keyboard.HID import Keyboard\n\nkbd = Keyboard()\n\nbytes_press = kbd.press(\"CONTROL ALT T\")\nprint(bytes_press)\nbytes_write = kbd.write('ls\\n')\nprint(bytes_write)\n```\n\n### Keycodes\nKeycodes are graciously borrowed from adafruit \n\nsee documentation [here](Py_Keyboard/keycodes.py)\n\n\n## to do\n\n`keycodes = layout.keycodes('$')`\n\nTest pip package import\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanny-dasilva%2Fpy_keyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanny-dasilva%2Fpy_keyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanny-dasilva%2Fpy_keyboard/lists"}