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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dc_u2_driver-0.0.3.tar.gz.
File metadata
- Download URL: dc_u2_driver-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fafc783554e8debc7f2e48ba12e01c5f10ad82ae4e01dd2f4b1dd82e65202f8
|
|
| MD5 |
32115c03f047c6779c99ff523467dead
|
|
| BLAKE2b-256 |
bbc6f27e53543e95e967cdd55d8a7fcdf46b63679bd30875d0a10d0f99b885a3
|
File details
Details for the file dc_u2_driver-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dc_u2_driver-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a89cabfcdb8be77c16880550d8e3dc810ca81bb710a2077fbe5b93982e7d946d
|
|
| MD5 |
f69929ed223b36cbad82c488c95c4a3c
|
|
| BLAKE2b-256 |
420486fcb3a77e3d2c3dd0b15bcb293fb1012a628e29c61559132d5e40f23e8a
|