Skip to main content

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.

Metadata

Release files for adb-tool-py 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adb-tool-py 0.1.2
File Size Uploaded Provenance
adb-tool-py-0.1.2.tar.gz 10.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adb-tool-py 0.1.2
File Interpreter ABI Platform
adb_tool_py-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / adb-tool-py-0.1.2.tar.gz

Download URL adb-tool-py-0.1.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c743c848203b11a20291d7e84e4d98e319c20a135172d73b0acbaa7aa193978
BLAKE2b-256 checksum
How to use checksums
c70f4f6fd02a18b8532d2c2ca7233a7351d4d18543bbbf245da48711481354ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / adb_tool_py-0.1.2-py3-none-any.whl

Download URL adb_tool_py-0.1.2-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
817669ed4037e2c22b8b6047ab9b18cdc525201c3a98773b55c3cb347ac44dc8
BLAKE2b-256 checksum
How to use checksums
ee0dbbb086e566316752d982da640001d2e605eb5c284778d4a35f3911a5f77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Security for adb-tool-py 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page