# Example Package
一、环境配置
1、Java环境 2、adb环境 3、appium服务 4、Python3.7 5、aapt环境配置
详情教程说明:https://www.yuque.com/docs/share/83d6e0f5-3397-4fdd-9a7f-dc51e3be1116
二、功能实现
1、启动appium服务 2、关闭appium服务 3、获取配置信息 4、启动app
三、如何使用
1、配置aapt路径,用于编译APP,获取包名、启动activity 2、配置adb路径,用于获取设备udid,设备版本、设备名称 3、配置APP路径,用于需要安装的应用
四、实例
aapt_path = “/Library/android_sdk/build-tools/26.0.2/aapt” adb_path = “/Library/android_sdk/platform-tools/adb” 或 aapt_path = “aapt” adb_path = “adb”
app_path = “/Users/liaozhenghong/work/django-study/django-study/opencv/demo.apk” udid = “emulator-5554” appiumServer = appium_server(udid,app_path,adb_path,aapt_path) #启动appium服务 caps = appiumServer.driver_caps() #配置driver appiumServer.startDriver(caps) #启动driver appiumServer.closeAppiumServer() #关闭app服务
五、更新版本说明
—–0.0.3 更新README.md说明,其他未优化————- —–0.0.4 更新README.md说明,修复window上不能执行shell脚本,兼容mac、window——- —–0.0.5 新建read.md说明文件,详解环境配置,其他未优化————- —–0.0.6 删除read.md说明文件,把详解环境配置添加到python文件中,其他未优化————- —–0.1.0 优化代码,新增api:点击、输入文本、上下滑动、截图、启动权限————- —–0.1.1 新增api:没有设备抛出异常、版本低于4抛出异常————- —–0.1.2 修改方法check_devices,兼容window、Mac————-
Metadata
Release files for AppiumAndroid 0.1.2
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 | Actions |
|---|---|---|---|---|
| AppiumAndroid-0.1.2.tar.gz | 4.6 kB | Without provenance | Details for AppiumAndroid-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AppiumAndroid-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for AppiumAndroid-0.1.2-py3-none-any.whl |
Total release size: 9.9 kB
Release files / AppiumAndroid-0.1.2.tar.gz
| Download URL | AppiumAndroid-0.1.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
593bfdc7165928bc55250553f92c6462cc77470632c02efa93c046a663fa27c7
|
|
BLAKE2b-256 checksum How to use checksums |
cc1fbe5d84d4f6482e326911dbc7f23e4ed20278f07cbc14c8b986bb84320703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / AppiumAndroid-0.1.2-py3-none-any.whl
| Download URL | AppiumAndroid-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b49edb6f37d65684e47a7d92d830de60929c61e1bf32cad844da478d8cfcd83b
|
|
BLAKE2b-256 checksum How to use checksums |
177dd1e28d5d8447560ed4aec66d2400f4ed84aedcd54beea45b43b640c8d718
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for AppiumAndroid 0.1.2
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.