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 PyADBServer
server = 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 PyADBUSBDevice
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 maturin
# Build development package
maturin develop
# Build stub file (.pyi)
cargo run --bin stub_gen
# Build release Python package
maturin build --release -m pyadb_client/Cargo.toml
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
pyadb_client-2.1.6.tar.gz
(22.2 kB
view details)
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 pyadb_client-2.1.6.tar.gz.
File metadata
- Download URL: pyadb_client-2.1.6.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc2226a0dee2feb1e197369c98e01944b6e0c80401d8654a4c57ef530931f5c
|
|
| MD5 |
20e3dae9fbd6d41a0f7dd21081f1ca7a
|
|
| BLAKE2b-256 |
6f931018ac5e7caca3713d6f50152df9f84c2f0bd2717da088ea01bebc69a3c4
|
File details
Details for the file pyadb_client-2.1.6-cp37-abi3-manylinux_2_25_x86_64.whl.
File metadata
- Download URL: pyadb_client-2.1.6-cp37-abi3-manylinux_2_25_x86_64.whl
- Upload date:
- Size: 942.6 kB
- Tags: CPython 3.7+, manylinux: glibc 2.25+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10952cb53f6694f272f713bf24fc02872e4659b4de7828c101e97a79e18e85e
|
|
| MD5 |
5e60c9af5500e9118dd3f37aa68c8500
|
|
| BLAKE2b-256 |
ba46ce871c8c89547aeab4ed5024a1cc68136b75725841ec1a2023507158fa12
|