Metadata-Version: 2.4
Name: android-xml-converter
Version: 0.1.0
Summary: Convert between Android Binary XML and human-readable XML
Author: rhythmcache
License: Apache-2.0
Project-URL: Homepage, https://github.com/rhythmcache/android-xml-converter
Keywords: android,xml,abx,binary,converter
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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

```bash
pip install android-xml-converter
```

## CLI Usage
```bash
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

```python
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')
```

