Android Asset Packaging Tool for Python3
Project description
Aapt
Android Asset Packaging Tool 2 for Python3
Install
pip3 install aapt2
Example
from aapt2 import aapt
help = aapt.aapt('--help')
print(help)
ls = aapt.ls('./xx.apk')
print(ls)
apk_info = aapt.get_apk_info('./xxx.apk')
print(apk_info)
# save icon
from PIL import Image
apk_info = aapt.get_apk_and_icon('./xxx.apk')
byte_stream = io.BytesIO(apk_info['icon_byte_value'])
img = Image.open(byte_stream)
img.save('./1.png')
# upload file
requests.post(url, files={'file': apk_info['icon_byte_value']})
API
- aapt(args)
- ls(file_path)
- dump(file_path, values)
- packagecmd(file_path, command)
- remove(file_path, files)
- add(file_path, files)
- crunch(resource, output_folder)
- single_crunch(input_file, output_file):
- version()
- get_apk_info(file_path)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aapt2-0.0.1.tar.gz
(1.6 kB
view details)
Built Distribution
aapt2-0.0.1-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file aapt2-0.0.1.tar.gz
.
File metadata
- Download URL: aapt2-0.0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78417e42621df5f16b5fc4245f3a62f87d9003486c2d69ae5ef63b7ddac84c78 |
|
MD5 | 8e64c84e0efec2c68c6a3ce814b94ffd |
|
BLAKE2b-256 | c92976026e745814fadf06e362d6bc37f0f334146966279308db177482fe36b5 |
File details
Details for the file aapt2-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: aapt2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ba553734ef6d046453e0d87909c5bc888226627fbc44660e009810f56dc6de |
|
MD5 | 00ad12b000e4ef97dd40f3565377bfda |
|
BLAKE2b-256 | 010bb1e84282364bd648ac2fab0bd1055245408afec9e936f8312f242d71ecdb |