python-adb provides a pure-Python implementation of the Android Debug Bridge protocol so you can script Android devices without depending on the platform adb binary. It exposes high-level helpers for device discovery, shell commands, file push/pull, port forwarding, and log collection, making it easy to build automation around phones and emulators. Under the hood it speaks the ADB protocol directly and can connect via USB or over TCP, which is useful for lab setups and headless servers. Because it’s Python, you can compose device actions with your favorite testing, scraping, or data-collection libraries in one process. The project also includes utilities for robust connection handling and timeouts so flaky USB links don’t derail long runs. It’s well-suited to CI test farms, large-scale telemetry, and custom device control workflows.

Features

  • Pure-Python ADB client for USB and TCP connections
  • Shell execution, file transfer, and log capture APIs
  • Device discovery and port forwarding helpers
  • Works in CI or headless servers without the adb binary
  • Timeout and retry controls for unreliable links
  • Easy composition with Python test and automation stacks

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

Apache License V2.0

Follow Python ADB

Python ADB Web Site

You Might Also Like
Relax: PRTG Monitors Your IT for You Icon
Relax: PRTG Monitors Your IT for You

Stay in control and avoid IT headaches. PRTG monitors your network, devices, and apps - receive alerts when it matters most.

You’re the go-to IT person, always putting out fires and keeping things running. With PRTG, you get reliable alerts to monitor your entire IT infrastructure, without the noise. Our intuitive setup gives you a clear overview of your network, devices, and applications in real time. Get instant alerts only when something needs your attention, whether you’re at your desk or on the move. Spend less time worrying about outages and more time focusing on what matters. Set up PRTG once and let it work for you - PRTG has you covered.
Start Your Free PRTG Trial Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Python ADB!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Data Formats Software

Registered

2025-10-10