Catalog PyPI
PACKAGE EXPLORERView in registry

aapt

PyPI

Android Asset Packaging Tool for Python3

aaptapktool
Versions collected1
Direct dependencies0From release 1.0.2
Last observed20 Oct, 17:01 UTC

README

Version 1.0.2 documentation

Aapt

Android Asset Packaging Tool for Python3

Example

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)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.29 Jul 20190

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
humoran/aapt

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:01 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7d448d99ce3e780405b4fcfc78a87ffe3cd885948c56553ffc54bc960462fec3