Skip to main content

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.

pypi.org downloads

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


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.12.tar.gz (64.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyadb_client-2.1.12-cp37-abi3-manylinux_2_39_x86_64.whl (951.4 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.39+ x86-64

File details

Details for the file pyadb_client-2.1.12.tar.gz.

File metadata

  • Download URL: pyadb_client-2.1.12.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.2

File hashes

Hashes for pyadb_client-2.1.12.tar.gz
Algorithm Hash digest
SHA256 6ca3a019721e7e6abb0d8c22fb7c32aa07320dc661878a16c26e7e267b165364
MD5 5de9c0823c7d416a7e9c5df49acc9e58
BLAKE2b-256 b9cb2f1eca1af55f229b3997c593a653183b279f151fb258f76c642731e7084d

See more details on using hashes here.

File details

Details for the file pyadb_client-2.1.12-cp37-abi3-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyadb_client-2.1.12-cp37-abi3-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 ec853c51acf0b4c87a8784875fc32712b46e23c28d03d499cecb58fc6923bec8
MD5 a5d93545a27c5aac285c00199866cd03
BLAKE2b-256 bfbc256ccfc3c7406c23f833a54551b0d8d6b2884f388d4f02abb63f42ddcb8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page