Python ADB + Fastboot implementation

Install using pip:

pip install adb

Once installed, two new binaries should be available: pyadb and pyfastboot.

pyadb devices
pyadb shell ls /sdcard

Running ./ creates two files: and They can be run similar to native adb and fastboot via the python interpreter:

python devices
python shell ls /sdcard