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.4.tar.gz (4.0 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.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dc_u2_driver-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 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.4.tar.gz
Algorithm Hash digest
SHA256 b1c877931b8d9968c264a1fe474470492b2839fe3c59b60cdd609e0f2ff37404
MD5 49c7a22a198d95567d58b39010e7971e
BLAKE2b-256 82c6d0945d9df9c28ad71aa0c180f7ebab38ab1096169e3bf4aec60d0b8a21bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dc_u2_driver-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71acdd7cd3ac6d957912509749190639159ff9369e8118ef8d7ecc24bddfebad
MD5 b36548b8b5aa51583ed2bbd4dde8c77c
BLAKE2b-256 eebcbaefc9340ed3bf9819c88db568ffffa28998085f7b9c9e6186cf6a05cb4c

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