Skip to main content

python wrapper for (some) Android build-tools

Project description

buildtools4py

python wrapper for (some) Android build-tools

install

This project is published to pypi, you can install it using:

pip install buildtools4py

This project wraps Android build-tools. e.g. Those can be installed with SDK manager from Android SDK like this:

apt install sdkmanager
sdkmanager 'build-tools;36.0.0'

apksigner verify

from buildtools4py.apksigner import apksigner_verify

r = apksigner_verify('example.apk')

assert r.verifies
assert len(r.signers) == 1
assert r.signers[0].certificate_sha256 == "abcdef...abcdef"

You can also convert the data into a dict/json:

from buildtools4py.apksigner import apksigner_verify
from dataclasses import asdict

data = apksigner_verify('example.apk')
datadict = asdict(data)
datajson = json.dumps(datadict, indent=2)

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

buildtools4py-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buildtools4py-0.1.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file buildtools4py-0.1.2.tar.gz.

File metadata

  • Download URL: buildtools4py-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.12.27+bpo-amd64

File hashes

Hashes for buildtools4py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c572c514faf35e78feda054d7dab082df2b926dff36b2571723f5e57d804bd83
MD5 149fe41e83a512bbb9a72ef2c1d7b482
BLAKE2b-256 ee9fa6074e8d5b0cf01702ce731012183b3de768afd04eb8078c1f258cb07ec1

See more details on using hashes here.

File details

Details for the file buildtools4py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: buildtools4py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.12.27+bpo-amd64

File hashes

Hashes for buildtools4py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 495981fe5a5373ca0349d355a9d13a3d16bd095d498bc5650d65e8a94f323538
MD5 c1e73ba5a6a747eaa9417953f506b843
BLAKE2b-256 7394cd0b49106b8d6d51eef734f00d88dc78aa0fa6e0e26aa41d1e74db6c7d98

See more details on using hashes here.

Supported by

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