Skip to main content

Powerful DEX file format parser for Pythonist

Project description

dexparser

Powerful DEX file format parser for Pythonist!

Build Status PyPI version Documentation Status

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)

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)

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)

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 Distribution

dexparser-1.1.1.tar.gz (9.2 kB view hashes)

Uploaded source

Built Distribution

dexparser-1.1.1-py3-none-any.whl (11.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page