adb-tool-py is a tool for Android Debug Bridge (adb).
Project description
adb-tool-py
adb-tool-py is a library for using Android Debug Bridge (ADB) functionality from Python.
It also provides extended functionality.
Features
- Communication with Android devices
- Parsing the displayed ViewTree
- Search/touch strings
- ID search/touch
- Search/touch etc.
Installation
pip install adb-tool-py
Usage
import adb_tool_py as adb_tool
adb1 = adb_tool.AdbTool()
adb2 = adb_tool.AdbTool(serial="emulator-5554")
ret1 = adb1.query("shell ls -al")
ret2 = adb2.query("shell ls -al")
print(ret1.returncode)
print(ret1.stdout)
print(ret1.stderr)
ret2 = adb1.logcat()
time.sleep(1)
with ret2.open() as file:
print(file.read())
ret2.close()
License
This project is licensed under the MIT License.
Contact
If you encounter any issues, please report them through the GitHub issue tracker.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adb-tool-py-0.1.0.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for adb_tool_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d634d277a2864c2d389163a4a9026af993ef339d1f675cb47c494bdffe40eb21 |
|
MD5 | 9c7af760cecd7ad8e24419fbb7ca29e8 |
|
BLAKE2b-256 | a980fc0689dabda2edcb175f989b30066bef9980e0bd8fd7fdad5e500a4baa9b |