This is a python library for extracting code, UI data, images and assets from .AIA files (App Inventor Projects).
The library works by extracting all of the data from an app inventor project. The one class you'll need is parseaia.Project, it represents one app inventor project.
from parseaia import Project
myproject = Project("MyApp.aia") # Initiate a Project with the filepath to the .aia
print(myproject.Screen1.UI.Properties.Components) # Printing out all the UI elementsThis example prints out all the UI elements in the screen "Screen1" (The default screen name when you create an app in app inventor, most apps will have it)
There is also an inspector GUI for exploring app inventor projects
You'll need PyQt5 to run it:
pip install PyQt5
Then you can run:
python -m parseaia
To open a file, just press File>Open and then select the .aia you want to open
- Add some more error catching
- Add support for video files