Skip to main content

pyidb

idb的python封装

安装

支持python >= 3.8

使用以下命令可以直接从腾讯pypi源进行安装

python3 -m pip install wetest-pyidb --upgrade --extra-index-url https://mirrors.tencent.com/repository/pypi/tencent_pypi/simple

已支持功能

优先支持添加了json参数的命令

✅ list

✅ info

✅ tunnel start

✅ ps

✅ applist

✅ developer

✅ launch

✅ reboot

✅ uninstall

用法

参考 examples 调用API

初始化

from pyidb import Idb

# 不填写参数
# idb_path: 会按照 PATH,home/localdevices/idb 顺序查找idb
# 查找不到会自动下载到 home/localdevices/idb
# udid: 使用 idb list 第一个设备的udid
idb = Idb()

# 指定 idb 路径
idb = Idb(idb_path="/Applications/idb")

# 指定 udid
idb = Idb(udid="00008130-001968982EA0001C")

更换设备

# 修改 idb_path
idb.idb_path = "~/idb"

# 修改 udid
idb.udid = "00008030-000A350A3482402E"

作者信息 & 致谢

Tencent WeTest Team

Metadata

Release files for wetest-pyidb 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wetest-pyidb 0.0.5
File Interpreter ABI Platform
wetest_pyidb-0.0.5-py3-none-any.whl Python 3 none any Details

Release files / wetest_pyidb-0.0.5-py3-none-any.whl

Download URL wetest_pyidb-0.0.5-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bb51abef6d18e9b5dfb3600d1ec464edce309e7a7918ae7ca708ca3ae2de6eb
BLAKE2b-256 checksum
How to use checksums
39feab4df6b2c2c03599b342b5f7e25fdb12ce0c66d652a5c465126193e54c4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page