Introduction
XPDC (X-Platform Device Connector) is designed to bridge the gap between devices across multiple platforms (Android, HarmonyOS, iOS).
It allows users to operate devices on different platforms with the same set of code.
Before using XPDC, you need to install the corresponding debug environment separately for each platform's device.
Android is adb, HarmonyOS is hdc
Installation
# Using uv
pip install uv
uv add xpdc
# Using pip
pip install xpdc
Quick Start
Install Dependencies
from xpdc import connection, DeviceType
# Specify connect device type
conn = connection(DeviceType.ADB)
# conn = connection(DeviceType.HDC)
# iOS will support it in the future.
conn.cmd(['devices'])
device = conn.devices[0]
# You can also specify the device by its device id
# device = conn.device(device_id='device_id')
device.tap(500, 500)
device.type_text(text='lanbaoshen')
device.screenshot()
device.cmd(cmd=['shell', 'ls'])
device.shell(cmd=['ls'])
# For Android devices, additionally install ADBKeyboard.apk and enable it to support Chinese input.
device.install_and_set_adb_keyboard()
Metadata
Release files for xpdc 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xpdc-0.1.3.tar.gz | 929.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xpdc-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 951.5 kB
Release files / xpdc-0.1.3.tar.gz
| Download URL | xpdc-0.1.3.tar.gz |
|---|---|
| Size | 929.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a76b73e5bc570187ae98f48db2722c20088e2f12f9373bb6fb400bdc52cad508
|
|
BLAKE2b-256 checksum How to use checksums |
01b92072815d58223df81ce32b9d32cafe825cf419f11449b885a52e041ca711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / xpdc-0.1.3-py3-none-any.whl
| Download URL | xpdc-0.1.3-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00bcabdb5c1001960d53b3e7c7ca1f28370e132b9982e767f6ff77ecec80baea
|
|
BLAKE2b-256 checksum How to use checksums |
97c0376a73db0a7d56b4b2fc395098a8ee19b7bcdbc9d6e16de331ae13202445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for xpdc 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.