I am trying to automate bluetoothctl tool using CLI and pexpect for the same. This is the code that I am using locally.
import pexpect self.process = pexpect.