Skip to main content

A lightweight Python package for automating Android devices via uiautomator2

Project description

DC U2 Driver

Credit: Original development by Dai Chao Online

DC U2 Driver is a lightweight Python package for automating Android devices using uiautomator2.
It’s designed for developers who want fast device interactions, robust element handling, and simple APIs without extra complexity.

Features

  • Connect to Android devices via device ID
  • Interact with UI elements using multiple locator types
  • Handle clicks, long clicks, and text input
  • Retrieve element attributes safely
  • Filter English text and skip unwanted UI elements
  • Retry clicks and wait for elements with customizable timing
  • Supports Python 3.10+

Installation

Install using pip:

pip install dc-u2-driver

Example

from dc_u2_driver import ElementDriver

driver = ElementDriver("device_id_here")
# use driver.work_on_element(...) etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dc_u2_driver-0.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dc_u2_driver-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file dc_u2_driver-0.0.2.tar.gz.

File metadata

  • Download URL: dc_u2_driver-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for dc_u2_driver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 65e536d474f7cd8b5b10932e54011edfb5983ebc0996fcf135671e3279a156a6
MD5 e2bc5901c07897bdae3f9de79ea53579
BLAKE2b-256 adb6819b5edc4d516f84235f52789b929edd279da3d298aed67e1a9b2667d723

See more details on using hashes here.

File details

Details for the file dc_u2_driver-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dc_u2_driver-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for dc_u2_driver-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be41066a5baee865ceca4f482b86598c0eaa17ab699e8a4a27252cdbc6640c8d
MD5 a3e8f59593980c4801308cdd448b3c6f
BLAKE2b-256 e0cc4727e0bb33b2446b20a7870798b8c2a8664d191eecca7c94c09385f21ec0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page