Catalog PyPI
Back to packageRELEASE DETAILS

1.0.9

PyPI

adbauto

A Python ADB automation library for Android emulators.

Published4 Aug 2025
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 1.0.9 documentation

adbauto

ADB-based automation for Android emulators like LDPlayer

adbauto is a Python library that simplifies automation for Android games and apps running in emulators. It provides tools to connect to an emulator, capture screenshots, match UI elements visually, and simulate input like taps and scrolls.


🚀 Features

  • Connect to LDPlayer or other Android emulators via ADB
  • Capture screenshots directly from the device
  • Locate UI elements via OpenCV template matching
  • Simulate taps and scrolling actions
  • Designed for building automation scripts for games

📦 Installation

pip install adbauto

Note: Make sure ADB is installed and available in your system's PATH.


🧪 Example Usage

from adbauto import adb, screen, input

# Connect to emulator
device_id = adb.get_ldplayer_device()

# Take a screenshot
img = screen.capture_screenshot(device_id)

# Find a button on screen
center = screen.find_template(img, "button_template.png")

# Tap it if found
if center:
    input.tap(device_id, *center)

📂 Project Structure

adbauto/
├── adb.py       # ADB device connection and shell utilities
├── screen.py    # Screenshot capture and template matching (OpenCV)
├── input.py     # Tap and scroll input simulation
└── __init__.py  # Module exports

✅ Requirements

  • Python 3.8+
  • ADB installed and on PATH
  • opencv-python
  • numpy

📃 License

MIT License © Thomas Knoops

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
opencv-python
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
opencv-pythonruntime
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
numpyruntime

Distribution files

2 collected
adbauto-1.0.9-py3-none-any.whl

bdist_wheel · 2,939.15 KB · Python py3

Source file
adbauto-1.0.9.tar.gz

sdist · 2,935 KB · Python source

Source file

Repository

PENDING
thoteman/adbauto

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7d4cfea4955f75e0b6a3e82e3438145db76fefe673f229b70ae720a01ae7dd1d

Other collected versions

View all collected versions →