# google/python-adb

Python ADB + Fastboot implementation

Repository: https://github.com/google/python-adb
Canonical: https://ross.abutalabs.com/products/python-adb
Language: Python
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2024-04-06T19:01:19+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4446, "days_push": 879, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1862, forks 363 (observed 2026-08-28T04:05:45.495374+00:00)

## What it is
A pure-Python implementation of the Android ADB and Fastboot protocols using libusb1 for USB communication. It can be used as a Python library or as standalone command-line tools (pyadb, pyfastboot) for communicating with Android devices programmatically.

## Use cases
- communicate with android devices from python
- automate adb shell commands in tests
- run fastboot commands programmatically
- flash android devices in automated pipelines
- push and pull files to android devices via python
- list connected android devices without adb daemon

## When to choose
- you need to control Android devices from Python code
- you want a daemon-less ADB client for automated testing
- you need portable standalone ADB/Fastboot tools runnable via Python
- you must ensure commands never target the wrong device

## When to avoid
- you need multiple simultaneous commands to the same device
- you need maximum performance for high-throughput device communication
- you want an actively maintained project - consider adb_shell instead
- you just need the standard adb/fastboot CLI experience

## Facets
- artifact type: library
- maturity: maintenance
- function: cli, developer-tools, workflow-automation, testing
- domain: developer-tools, testing
- platform: python, windows, cli
- tags: adb, fastboot, android, usb, libusb1, device-automation, command-line, automation, linux, macos

## Member repositories
- google/python-adb (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:45.495374+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:41.979295+00:00, confidence not recorded.
  - readme: https://github.com/google/python-adb (fetched 2026-08-28T04:05:45.495374+00:00, sha 69742e0e848c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
