# pyadb_client
<p align="center">
<p align="center">Python library to communicate with ADB devices. Built on top of Rust adb_client library.</p>
<p align="center">
<a href="https://pypi.org/project/pyadb_client">
<img alt="pypi.org" src="https://img.shields.io/pypi/v/pyadb_client.svg" />
</a>
<a href="https://pypi.org/project/pyadb_client">
<img alt="downloads" src="https://static.pepy.tech/badge/pyadb_client" />
</a>
</p>
</p>
## Installation
```bash
pip install pyadb_client
```
## Examples
### Use ADB server
```python
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
```python
from pyadb_client import PyADBUSBDevice
usb_device = PyADBUSBDevice.autodetect()
usb_device.push("file.txt", "/data/local/tmp/file.txt")
```
## Local development
```bash
# Create Python virtual environment
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/cocool97/adb_client",
"name": "pyadb-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "adb, android, tcp, usb",
"author": "Corentin LIAUD",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/1b/15/24d7f2acdf3c131a07a30ebd54e351a7b25246aca5a6771b91e598066d50/pyadb_client-2.1.15.tar.gz",
"platform": null,
"description": "# pyadb_client\n\n<p align=\"center\">\n <p align=\"center\">Python library to communicate with ADB devices. Built on top of Rust adb_client library.</p>\n <p align=\"center\">\n <a href=\"https://pypi.org/project/pyadb_client\">\n <img alt=\"pypi.org\" src=\"https://img.shields.io/pypi/v/pyadb_client.svg\" />\n </a>\n <a href=\"https://pypi.org/project/pyadb_client\">\n <img alt=\"downloads\" src=\"https://static.pepy.tech/badge/pyadb_client\" />\n </a>\n </p>\n</p>\n\n## Installation\n\n```bash\npip install pyadb_client\n```\n\n## Examples\n\n### Use ADB server\n\n```python\nfrom pyadb_client import PyADBServer\n\nserver = PyADBServer(\"127.0.0.1:5037\")\nfor i, device in enumerate(server.devices()):\n print(i, device.identifier, device.state)\n\n# Get only connected device\ndevice = server.get_device()\nprint(device, device.identifier)\n```\n\n### Push a file on device\n\n```python\nfrom pyadb_client import PyADBUSBDevice\n\nusb_device = PyADBUSBDevice.autodetect()\nusb_device.push(\"file.txt\", \"/data/local/tmp/file.txt\")\n```\n\n## Local development\n\n```bash\n# Create Python virtual environment\npython3 -m venv .venv\nsource .venv/bin/activate\n\n# Install needed build dependencies\npip install maturin\n\n# Build development package\nmaturin develop\n\n# Build stub file (.pyi)\ncargo run --bin stub_gen\n\n# Build release Python package\nmaturin build --release -m pyadb_client/Cargo.toml\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python wrapper for adb_client library",
"version": "2.1.15",
"project_urls": {
"Homepage": "https://github.com/cocool97/adb_client",
"Source Code": "https://github.com/cocool97/adb_client"
},
"split_keywords": [
"adb",
" android",
" tcp",
" usb"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "571698d3ab455c149dcd20d702fbdd6891feaf454b021af3e9c2b1d734a3314b",
"md5": "a82d3cdde5b38d282f0f8a04df3951e6",
"sha256": "52cbdbdf81b0fced53d08f812cf00e7b11765a8a10ecfd6d4d51899eb4309db4"
},
"downloads": -1,
"filename": "pyadb_client-2.1.15-cp37-abi3-manylinux_2_39_x86_64.whl",
"has_sig": false,
"md5_digest": "a82d3cdde5b38d282f0f8a04df3951e6",
"packagetype": "bdist_wheel",
"python_version": "cp37",
"requires_python": ">=3.7",
"size": 941909,
"upload_time": "2025-07-27T18:24:23",
"upload_time_iso_8601": "2025-07-27T18:24:23.729241Z",
"url": "https://files.pythonhosted.org/packages/57/16/98d3ab455c149dcd20d702fbdd6891feaf454b021af3e9c2b1d734a3314b/pyadb_client-2.1.15-cp37-abi3-manylinux_2_39_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1b1524d7f2acdf3c131a07a30ebd54e351a7b25246aca5a6771b91e598066d50",
"md5": "e7b0d44e1845f1bb91226f43573f5c8a",
"sha256": "1b834186a44bfda02668bb83c33fc8937558fa1a1b01e03456fa74329c873f25"
},
"downloads": -1,
"filename": "pyadb_client-2.1.15.tar.gz",
"has_sig": false,
"md5_digest": "e7b0d44e1845f1bb91226f43573f5c8a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 61679,
"upload_time": "2025-07-27T18:24:25",
"upload_time_iso_8601": "2025-07-27T18:24:25.207235Z",
"url": "https://files.pythonhosted.org/packages/1b/15/24d7f2acdf3c131a07a30ebd54e351a7b25246aca5a6771b91e598066d50/pyadb_client-2.1.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-27 18:24:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cocool97",
"github_project": "adb_client",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyadb-client"
}