Registry / serialization / pyaxmlparser

pyaxmlparser

JSON →
library0.3.31pypypi✓ verified 85d ago

Python3 parser for Android binary XML files (e.g., AndroidManifest.xml). Provides easy extraction of application name, package, permissions, and other manifest attributes without relying on Androguard. Active development on GitHub by Appknox.

pip install pyaxmlparser
INSTALL
IMPORT
SIG · PYAXMLPARSER
P
pyaxmlparser
serializationpythonv0.3.31
Install
2.3s avg
Import
Disk
30MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.31 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 32.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.3s · import 0.000s · 33MB
30MB installed
● package 30MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

APK
from pyaxmlparser import APK
from pyaxmlparser import AXMLParser

Open an APK file and extract basic info: package name, application label, and permissions.

from pyaxmlparser import APK apk = APK('sample.apk') print(apk.package) print(apk.application) print(apk.permissions)
Debug
Known issues
gotchaAPK file path must be valid; the library does not provide detailed error messages for malformed APKs.
fix
Ensure the APK file is not corrupted and is a valid ZIP archive.
affects: all
gotchapyaxmlparser is not thread-safe; do not share AXMLParser instances across threads without locks.
fix
Use separate instances or protect with threading.Lock.
affects: all
gotchaThe library may raise 'SystemError: unknown type' on certain edge-case XML nodes. This is not a user error but a parser limitation.
fix
Wrap parsing in a try/except block or use an alternative like androguard for complex files.
affects: >=0.3.0
gotchaAPK object properties (e.g., .application) may return None if the manifest is missing expected tags.
fix
Always check for None before accessing nested attributes.
affects: all
Upgrade
Version history
0.3.31latest on PyPI · released Mar 20, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pyaxmlparser — pip install pyaxmlparser · libregistry