Metadata-Version: 2.4
Name: damon-devtools
Version: 0.4.0
Summary: Developer CLI tools — portkill, removebg, apkpull
Author: damon
License: MIT
Keywords: cli,devtools,android,apk,adb
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: psutil>=5.9

# devtools

Developer CLI tools: portkill, removebg, apkpull.

---

## Tools

### portkill

Kill Node.js processes by port or scan all node processes.

```bash
python -m devtools portkill
python -m devtools portkill --listen-only
```

### apkpull

Pull APK files from Android device via ADB.

Features:
- List and search third-party apps
- Fast app name lookup via aapt2
- Auto-download aapt2 if not found locally
- Multi-device support
- Label caching for faster subsequent runs

```bash
# Interactive mode
python -m devtools apkpull

# Specify target directory
python -m devtools apkpull /path/to/output

# Search apps by keyword
python -m devtools apkpull -s wechat
```

### removebg

Remove image backgrounds using the remove.bg API.

```bash
python -m devtools removebg input.jpg
```

---

## Install

```bash
pip install damon-devtools
```

Requires: Python >= 3.10

---

# devtools

开发者命令行工具集：portkill、removebg、apkpull。

---

## 工具

### portkill

根据端口查找并终止 Node.js 进程，或扫描所有 node 进程。

```bash
python -m devtools portkill
python -m devtools portkill --listen-only
```

### apkpull

通过 ADB 从 Android 设备拉取 APK 安装包。

功能特点：
- 列出和搜索第三方应用
- 通过 aapt2 快速获取应用名
- 本地未找到 aapt2 时自动下载
- 多设备支持
- 应用名缓存，加速后续运行

```bash
# 交互模式
python -m devtools apkpull

# 指定目标目录
python -m devtools apkpull /path/to/output

# 搜索应用
python -m devtools apkpull -s wechat
```

### removebg

使用 remove.bg API 去除图片背景。

```bash
python -m devtools removebg input.jpg
```

---

## 安装

```bash
pip install damon-devtools
```

要求：Python >= 3.10
