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.

Examples

Use ADB server

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

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 dependencies
pip install -e .

# Build development package
maturin develop

# Build release Python package
maturin build --release

# Publish Python package

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

Uploaded Source

Built Distributions

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

pyadb_client-2.1.0-cp313-cp313-manylinux_2_39_x86_64.whl (919.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

pyadb_client-2.1.0-cp38-abi3-manylinux_2_39_x86_64.whl (922.7 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyadb_client-2.1.0.tar.gz
Algorithm Hash digest
SHA256 023c2fb8efd03615f13e839c29fabaae660a2d86aea523f925ea60a1494359c3
MD5 bb905aa784d76ec5215206a439bd5720
BLAKE2b-256 9e71add7687af14d8e805c65fe24ca76370e2acefc66a1a4154b3bf175772449

See more details on using hashes here.

File details

Details for the file pyadb_client-2.1.0-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyadb_client-2.1.0-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 059ad66b5fd23641bfa2f670bd731e6b7a0cd57d2f04523edc5a4d05e96da28e
MD5 7b38ca5d3dd877739bc7199ad4a411cb
BLAKE2b-256 25bc6d947eb976d041423488c565378d026f430068be52427a72636595a05725

See more details on using hashes here.

File details

Details for the file pyadb_client-2.1.0-cp38-abi3-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyadb_client-2.1.0-cp38-abi3-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 d1d5364950ee568fcb6fafa68d45c3a49e041631ebe4c1b48c7101053a7b6992
MD5 95e65af927039456a626d77128e31d2a
BLAKE2b-256 9fee21ff60f01eb9d4e3805751e35a2dc7f14a70a68e7c6fb06cc340f33750d1

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