What does HackerNews think of pylgbst?

Python library for LEGO® PoweredUp devices

Language: Python

#164 in Python
In case anyone cares, there is an open-source Python library for interfacing with Lego Boost/Mindstorms [0]. Last time I checked, it worked quite well with the Boost and needed some minor work with the actual Mindstorms hub.

[0] https://github.com/undera/pylgbst

I think they may be more open than it appears.

LEGO published an official reference for communicating with all of the modern technic hubs on their github: https://github.com/LEGO/lego-ble-wireless-protocol-docs

There are several projects that have implemented parts of the protocol, ex: https://github.com/undera/pylgbst https://github.com/JorgePe/pyb00st https://github.com/virantha/bricknil

If the official protocol leaves you wanting, there exists 3rd party firmware for a most of the hubs that allows you to run python directly on the hubs: https://pybricks.com/

The color/distance sensor 88007 is in the compatibility list, so it'll work. However, the move hub 88006 is not in the list, which is unsurprising since I think it's bluetooth-only. There are already several libraries which you can use here, like https://github.com/undera/pylgbst or https://github.com/virantha/bricknil.