PyTmcStepper is a pure Python library for controlling Trinamic stepper drivers via UART or SPI on platforms like Raspberry Pi and MicroPython devices.
TMCL Serial interface to Trinamic Stepper Motors
TMCM-Lib – Trinamic Motion Control Module Library for Python