Skip to main content

Convert between Android Binary XML and human-readable XML

Project description

Android-XML-Converter

A Python library for converting between ABX format and human-readable XML.

Features

  • Convert ABX files to XML
  • Convert XML files to ABX
  • Command-line interface

Installation

pip install android-xml-converter

CLI Usage

usage: abx2xml [-h] [-i] input [output]
usage: xml2abx [-h] [-i] input [output]

Converts Android Binary XML (ABX) to human-readable XML.

positional arguments:
  input           Input file path (use "-" for stdin)
  output          Output file path (use "-" for stdout)

options:
  -h, --help      show this help message and exit
  -i, --in-place  Overwrite input file with converted output

Use as Library

from android_xml_converter import (
    AbxToXmlConverter,
    XmlToAbxConverter,
    abx_to_xml_string,
    xml_to_abx_string
)

# Convert between strings/bytes
xml = abx_to_xml_string(abx_data)  # ABX bytes to XML string
abx_data = xml_to_abx_string(xml)  # XML string to ABX bytes

# File conversion
abx_converter = AbxToXmlConverter()
abx_converter.convert_file('input.abx', 'output.xml')

xml_converter = XmlToAbxConverter()
xml_converter.convert_file('input.xml', 'output.abx')

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

android_xml_converter-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

android_xml_converter-0.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file android_xml_converter-0.1.0.tar.gz.

File metadata

  • Download URL: android_xml_converter-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for android_xml_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce0a3fcb15d1601dbd91ca703236809a3c11e803167c35065ba8a2059757c59e
MD5 c90e8ac3913e1d97ef4691be0f0a23d0
BLAKE2b-256 ccc9526af0f27c35b0f4b13f01d39c5c6f884010ade3cbdd4032d85f333389ce

See more details on using hashes here.

File details

Details for the file android_xml_converter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for android_xml_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34f7fc1881686e870d39d2165373f126e873d7829af9ae21c0e583a0585e27c5
MD5 9f64cf4514c55ef89b2a0fc298d091df
BLAKE2b-256 985d73e5973d1a6078c7c8b4924c13e6eb072135812b180f9fe9020ba978a9e4

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