Skip to main content

python wrapper for (some) Android build-tools

Project description

buildtools4py

python wrapper for (some) Android build-tools

usage

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)

development hints

commit check: run all check, linters, tests, etc.

Make sure this runs without any errors/warnings before commiting. This runs all sortos of checks, linters, tests, etc. to make sure the code is in acceptable shape.

tools/check

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.6.tar.gz (4.9 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.6-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: buildtools4py-0.1.6.tar.gz
  • Upload date:
  • Size: 4.9 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.6.tar.gz
Algorithm Hash digest
SHA256 19bf3c4e1db7e695c22eae9b067e074471408e2c8485fbddfd12a05378ada33f
MD5 f66894cee763e27677d331280b77c810
BLAKE2b-256 824951d972caf45bcdd5f5fe47065fd1b5c74b886460a77eb850165e02e91194

See more details on using hashes here.

File details

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

File metadata

  • Download URL: buildtools4py-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 10f516aa650d367403972450467da06e8bd51bfef77fdc9ae9cdd15cfb8bdb6b
MD5 18199cf86fed0e8a7990917846a24f7d
BLAKE2b-256 ad86cab54b0d114f6de7c9f5533a26a2f21fd97410e55183146411d0d7f6f919

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