STM8 SWIM access library, BMS tester
This library is a simple ctypes wrapper for ST's DLLs.
bms_test.py is a tester script for Ninebot/Xiaomi BMSes based on STM8L151K6+BQ769x0.
Connect ST-Link to BMS and to PC, press start button on the BMS to wake it up, run the script.