PYTOHub is a program that can directly connect to your lego spike prime or mindstorms hub
How to download PYToHub
Run this in your terminal (Command prompt)
pip install pytohub
Press enter
when you see your hub's serial port, Make sure that you setted up your lego hub for pytohub to connect.
You can directly run it in the terminal
python -m pytohub
You need to setup your lego hub
You can directly run it in the terminal
python -m pytohub --download