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 by other criteria
Installation
pip install adb-tool-py
Documentation
For more detailed usage and additional features, please refer to the official documentation.
Usage
import adb_tool_py as adb_tool
import time
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adb-tool-py-0.1.2.tar.gz.
File metadata
- Download URL: adb-tool-py-0.1.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c743c848203b11a20291d7e84e4d98e319c20a135172d73b0acbaa7aa193978
|
|
| MD5 |
23a67dae3c7335624c380b2ca8ea4d78
|
|
| BLAKE2b-256 |
c70f4f6fd02a18b8532d2c2ca7233a7351d4d18543bbbf245da48711481354ec
|
File details
Details for the file adb_tool_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: adb_tool_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817669ed4037e2c22b8b6047ab9b18cdc525201c3a98773b55c3cb347ac44dc8
|
|
| MD5 |
5a0fee855d7eb5ab17db908e6caf6fce
|
|
| BLAKE2b-256 |
ee0dbbb086e566316752d982da640001d2e605eb5c284778d4a35f3911a5f77d
|