pyadb-client


Namepyadb-client JSON
Version 2.1.9 PyPI version JSON
download
home_pagehttps://github.com/cocool97/adb_client
SummaryPython wrapper for adb_client library
upload_time2025-03-09 18:47:53
maintainerNone
docs_urlNone
authorCorentin LIAUD
requires_python>=3.7
licenseMIT
keywords adb android tcp usb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyadb_client

Python library to communicate with ADB devices. Built on top of Rust `adb_client` library.

## 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
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
```


            

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/88/73/9da47f04d265e7c843eb414d9fe3404427274b1004b4ab5f365d50ab483a/pyadb_client-2.1.9.tar.gz",
    "platform": null,
    "description": "# pyadb_client\n\nPython library to communicate with ADB devices. Built on top of Rust `adb_client` library.\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\ncd pyadb_client\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.9",
    "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": "e3800804adfa2a77176936925f5cba17a9fca1fdee319923489151f8139f32c6",
                "md5": "704109efdf1b29b007a4b61f0e7cdefc",
                "sha256": "87f259ff5fb58007d14903e0a4eba4e008dcf82c7d9284b118c4444c2fd944cf"
            },
            "downloads": -1,
            "filename": "pyadb_client-2.1.9-cp37-abi3-manylinux_2_39_x86_64.whl",
            "has_sig": false,
            "md5_digest": "704109efdf1b29b007a4b61f0e7cdefc",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 943602,
            "upload_time": "2025-03-09T18:47:52",
            "upload_time_iso_8601": "2025-03-09T18:47:52.158665Z",
            "url": "https://files.pythonhosted.org/packages/e3/80/0804adfa2a77176936925f5cba17a9fca1fdee319923489151f8139f32c6/pyadb_client-2.1.9-cp37-abi3-manylinux_2_39_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "88739da47f04d265e7c843eb414d9fe3404427274b1004b4ab5f365d50ab483a",
                "md5": "26d0035c784d3cfa748afe4efcbeffe2",
                "sha256": "a2b11931109f652604a6c61e13ada71c2a6c947b8a28b0ae220de6f6a3597955"
            },
            "downloads": -1,
            "filename": "pyadb_client-2.1.9.tar.gz",
            "has_sig": false,
            "md5_digest": "26d0035c784d3cfa748afe4efcbeffe2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 63167,
            "upload_time": "2025-03-09T18:47:53",
            "upload_time_iso_8601": "2025-03-09T18:47:53.843804Z",
            "url": "https://files.pythonhosted.org/packages/88/73/9da47f04d265e7c843eb414d9fe3404427274b1004b4ab5f365d50ab483a/pyadb_client-2.1.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-09 18:47:53",
    "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"
}
        
Elapsed time: 0.94740s