tycmd-wrapper - a Python wrapper for tycmd

bimac

Member
Hey everyone,

I needed a Python wrapper for tycmd and came up with this: https://pypi.org/project/tycmd-wrapper/ ... not sure how useful this is, but it also doubles as a quick way to install the platform specific tycmd binary: pip install tycmd-wrapper ...

Here's a little example in Python:
Python:
import tycmd
import logging

logging.basicConfig(level=logging.INFO)
tycmd.upload('blink.hex', port='/dev/ttyACM0')

Resulting in:
Code:
INFO:tycmd:Uploading to board '14014980-Teensy' (Teensy 4.0)
INFO:tycmd:Triggering board reboot
INFO:tycmd:Firmware: blink40.hex
INFO:tycmd:Flash usage: 19 kiB (1.0%)
INFO:tycmd:Uploading...
INFO:tycmd:Sending reset command (with RTC)

Anyways, I just thought I should put it out here ;-)

Cheers

edit: added example
 
Last edited:
I just updated tycmd-wrapper to version 0.3.0. Binaries for tycmd are now build on the GitHub CI, targeting the following platforms:
  • Linux (x86_64, arm64)
  • macOS (Intel, Apple Silicon)
  • Windows (x86_64)
 
Back
Top