Python wrapper for adb_client library
Project description
pyadb_client
Python library to communicate with ADB devices. Built on top of Rust adb_client library.
Installation
pip install pyadb_client
Examples
Use ADB server
from pyadb_client import pyadb_client
server = pyadb_client.PyADBServer("127.0.0.1:5037")
for i, device in enumerate(server.devices()):
print(i, device.identifier, device.state)
# Get only connected device
device = server.get_device()
print(device, device.identifier)
Push a file on device
from pyadb_client import pyadb_client
usb_device = PyADBUSBDevice.autodetect()
usb_device.push("file.txt", "/data/local/tmp/file.txt")
Local development
# Create Python virtual environment
cd pyadb_client
python3 -m venv .venv
source .venv/bin/activate
# Install needed build dependencies
pip install ".[build]"
# Build development package
maturin develop
# Build release Python package
maturin build --release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 pyadb_client-2.1.5.tar.gz.
File metadata
- Download URL: pyadb_client-2.1.5.tar.gz
- Upload date:
- Size: 60.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34a52d2d6156004348d42e3a56316867d1ac97307f40fad2dda21c229c8596b
|
|
| MD5 |
920f58d6749bd66f2e811254c7c1a600
|
|
| BLAKE2b-256 |
d1cb5c1770b05ca138c3535e86a3dce143fd9411f241215b0f8b74449a3a5ed0
|
File details
Details for the file pyadb_client-2.1.5-cp37-abi3-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: pyadb_client-2.1.5-cp37-abi3-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 944.3 kB
- Tags: CPython 3.7+, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e65252af05ecc5c76acc3575d8d95c6d8e104f5bfe30d0025b3ea43f3fc86e8
|
|
| MD5 |
0bf1eba0c25ed0fe84050b18da4f5200
|
|
| BLAKE2b-256 |
0ac7386695a87442c219600de94370062179a9ed074a327056b3a836ee89910c
|
File details
Details for the file pyadb_client-2.1.5-cp37-abi3-manylinux_2_27_x86_64.whl.
File metadata
- Download URL: pyadb_client-2.1.5-cp37-abi3-manylinux_2_27_x86_64.whl
- Upload date:
- Size: 944.3 kB
- Tags: CPython 3.7+, manylinux: glibc 2.27+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee5555e6e9ff236500763cf49f56cff3220256d204aac21a0420dc298cb8c058
|
|
| MD5 |
09613076ff5f569d755f04a705bbd540
|
|
| BLAKE2b-256 |
1ab5208ad3d5f06d542cb6c240134f8d2fdeddcdfb5a3a9e632892a5b120b975
|
File details
Details for the file pyadb_client-2.1.5-cp37-abi3-manylinux_2_25_x86_64.whl.
File metadata
- Download URL: pyadb_client-2.1.5-cp37-abi3-manylinux_2_25_x86_64.whl
- Upload date:
- Size: 928.0 kB
- Tags: CPython 3.7+, manylinux: glibc 2.25+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c646e0e1cb5c5163f6595500f3926e3b4872546c758835b80a7ab9856914492d
|
|
| MD5 |
187c9e247c994164ddc3d05c95ed0d29
|
|
| BLAKE2b-256 |
c59fef86ed74b5848ec6998769ca3b5164b441688fe82d3f00553fb25e392985
|