pyduinocli is a wrapper library around arduino-cli to make the arduino-cli calls easy from a python script.
To install the library simply do
pip install pyduinocli
To start using the library simply import the module, create a new Arduino instance and enjoy.
import pyduinocli
arduino = pyduinocli.Arduino("./arduino-cli")
print(arduino.version())
See LICENSE