Skip to main content

make adb more easy

Project description

eadb

eadb=easy adb
封装常用的adb命令,提高使用效率,仅限:macOS、Linux使用

背景

在使用adb命令时,获取设备名、设备版本号、截屏等功能,输入的终端命令比较长,效率比较低,所以才有了这个小工具的诞生。

安装环境

  1. 搭建 Java 开发环境
  2. 搭建 Android-SDK 开发环境
  3. 安装 Python 3 环境,推荐使用3.7

安装

pip install eadb        # 安装
pip install -U eadb     # 更新版本

使用方法

目前包含命令行有eadb,adname,adversion,adscreen,adinfo,adsize.
具体使用文档可参照【命令行+-h】命令

$ eadb --devices
['012332EF', 'dj23df']


# 获取当前电脑连接的所有设备的系统版本号
$ eadb --version
{
    "012332EF": "4.2.2",
    "dj23df": "7.1.1"
}

# 获取指定连接设备的系统版本号
$ eadb --version 012332EF
{
    "012332EF": "4.2.2"
}

# 获取当前电脑连接的所有设备的系统版本号
$ adversion
{
    "012332EF": "4.2.2",
    "dj23df": "7.1.1"
}

# 获取指定连接设备的系统版本号
$ adversion --id 012332EF
{
    "012332EF": "4.2.2"
}

版本规划

  • 完成自定义命令设置(完成)
  • adb基本命令封装(完成devices、name、version、screenshot、info、wm_size)
  • 优化终端命令行输出(完成,以json格式输出)
  • logging融入到命令输出上(未完成,添加参数--verbose
  • 命令行尝试采用第三方库click(未完成)
  • 封装更多的命令行(未有规划,等待大家的建议)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Eadb-0.2.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page