Skip to main content

Powerful DEX file format parser for Pythonista

Project description

dexparser

Powerful DEX file format parser for Pythonist!

Build Status PyPI version Documentation Status Hits

Usage

See the docs for detail descriptions.

Pre-requirements

  • Python 3.x (Unofficially, dexparser support Python 2.x)
  • DEX friendly mind

Install

pip install dexparser

Load DEX from filename

from dexparser import DEXParser

filedir = '/path/to/classes.dex'
dex = DEXParser(filedir=filedir)

Load DEX file from object

from dexparser import DEXParser

with open('classes.dex', 'rb') as fileobj:
    dex = DEXParser(fileobj=fileobj.read())

Load APK file from object and filename

from dexparser import APKParser

filedir = '/path/to/test.apk'
apk = APKParser(filedir=filedir)

with open('/path/to/test.apk', 'rb') as fileobj:
    apk = APKParser(fileobj=fileobj.read())

Load AAB file from object and filename

from dexparser import AABParser

filedir = '/path/to/test.apk'
aab = AABParser(filedir=filedir)

with open('/path/to/test.apk', 'rb') as fileobj:
    aab = AABParser(fileobj=fileobj.read())

License

This project is licensed under the MIT License

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dexparser-1.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file dexparser-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: dexparser-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for dexparser-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87c48dd05779571acc5d5feb915f4d46447a8c22d1cb283cda8ba48a106aebfc
MD5 fd8bd15d209acfd705e1841df7d66b0f
BLAKE2b-256 5f0cab784c503d907f88c97f31e418879d0a64ccc21bc333d4bdfa3b1dab64cf

See more details on using hashes here.

Supported by

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