Skip to content
A GUI app for playing with HID devices, written in Python
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.gitignore
LICENSE
README.md

README.md

HIDPyToy - A simple tool to play with USB HID devices

Written in Python3 with PyQt5 and built with fbs.

Download

Pre-build executables are available on the hidpytoy releases page for:

This should work for Linux too but I've not yet tried.

Development

To install for development (until I get setup.py up):

git clone https://github.com/todbot/hidpytoy
cd hidpytoy

python3 -m venv venv
source venv/bin/activate

# on Windows powershell, and must be Python 3.6, not 3.7:
# py -3.6 -m venv venv
# .\venv\scripts\activate.ps1

pip install fbs
pip install PyQt5==5.9.2
pip install hidapi
# or equivalently
pip install fbs PyQt5==5.9.2 hidapi

# run the app
fbs run

# build the executable
fbs freeze

# To edit the UI
# 1. Install Qt Designer from https://build-system.fman.io/qt-designer-download
# 2. Save .UI file and run:
pyuic5 HIDToyWindow.ui -o HIDToyWindow.py

# or when working with it in another location:
cp ~/Desktop/HIDToyWindow.ui src/main/python/ && pyuic5 src/main/python/HIDToyWindow.ui -o src/main/python/HIDToyWindow.py

Be sure to see fbs troubleshooting page

You can’t perform that action at this time.