Metadata-Version: 2.4
Name: apkutils
Version: 1.5.9
Summary: 一个APK解析库
Project-URL: Repository, https://gitee.com/kin9-0rz/apkutils
Author-email: kin9-0rz <kin9-0rz@outlook.com>
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <4.0.0,>=3.8
Requires-Dist: beautifulsoup4<5.0.0,>=4.10.0
Requires-Dist: click<9.0.0,>=8.0.3
Requires-Dist: colorlog<7.0.0,>=6.7.0
Requires-Dist: cryptography>=39.0.1
Requires-Dist: lxml>=5.0.0
Requires-Dist: pyelftools<0.28,>=0.27
Requires-Dist: pyftype<2.0.0,>=1.2.4
Requires-Dist: pygments<3.0.0,>=2.12.0
Description-Content-Type: text/markdown

# apkutils

[![PyPI](https://img.shields.io/pypi/v/apkutils?style=for-the-badge)](https://pypi.org/project/apkutils/) ![PyPI - Status](https://img.shields.io/pypi/status/apkutils?style=for-the-badge) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/apkutils?style=for-the-badge) ![PyPI - Downloads](https://img.shields.io/pypi/dw/apkutils?style=for-the-badge) ![PyPI - License](https://img.shields.io/pypi/l/apkutils?style=for-the-badge)

## 介绍

一个用于解析APK、Dex、AXML、ARSC、ELF的库。

## 安装教程

```bash
❯ pip install apkutils

❯ apkutils
Usage: apkutils [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  arsc      打印arsc
  certs     打印证书
  files     打印文件
  manifest  打印清单
  mtds      获取指定方法中的所有字符串
  strings   打印Dex中的字符串
  unzip     解压文件，默认显示zip文件
  xref      获取方法的引用方法
```

## 用法

```python
from apkutils import APK

# NOTE 按需解析，这里仅仅解析清单，不解析dex、图标。
apk = APK.from_file(file_path).parse_resource()
manifest = apk.get_manifest()
apk.close()

# or
with APK.from_file(file_path) as apk:
    apk.get_manifest()
```

请参考 `examples` 目录。

## 备注

从 `1.3.0` 开始，默认不解析清单、不解析图标、不解析Dex，而是按需解析。

## 感谢

- [Storyyeller/enjarify](https://github.com/Storyyeller/enjarify)
- [androguard/androguard](https://github.com/androguard/androguard)
