ai2-screen-renamer
A command-line tool to rename screens in MIT App Inventor 2 projects (.aia files).
App Inventor does not provide a built-in way to rename screens. This tool automates the process by editing the .aia file directly, updating all internal references consistently.
What it does
For a given screen rename (OldName → NewName), the tool updates:
OldName.scm→NewName.scm(Designer components file)OldName.bky→NewName.bky(Blocks file)$Namefield inside the.scmfilemain=andlastopened=entries inyoungandroidproject/project.properties- Any
open another screenblock references in other screens'.bkyfiles
Installation
Requires Python 3.10+.
pipx install ai2-screen-renamer
Or with pip:
pip install ai2-screen-renamer
Or install from source:
git clone https://github.com/fgimenez/ai2-screen-renamer.git
cd ai2-screen-renamer
pip install -e .
Usage
# Rename Screen2 to AgendaContactos, output to MyApp_AgendaContactos.aia
ai2-screen-renamer MyApp.aia Screen2 AgendaContactos
# Specify output file explicitly
ai2-screen-renamer MyApp.aia Screen2 AgendaContactos MyApp_renamed.aia
Or as a Python module:
python -m ai2_renamer MyApp.aia Screen2 AgendaContactos
Limitations
Screen1 cannot be renamed. App Inventor requires Screen1 to exist as the launch screen — renaming it would produce a project that fails to build.
Errors
The tool raises a descriptive error if:
- The input file is not a valid
.aiafile - The screen to rename does not exist in the project
- A screen with the new name already exists in the project
- The screen to rename is
Screen1
Development
pip install -e ".[dev]"
pytest -v
License
Apache 2.0
Metadata
Release files for ai2-screen-renamer 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai2_screen_renamer-0.3.1.tar.gz | 8.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai2_screen_renamer-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / ai2_screen_renamer-0.3.1.tar.gz
| Download URL | ai2_screen_renamer-0.3.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcbd29f851eb7c177f752679132589d0575622d1c4b6a653c534f0b8738322af
|
|
BLAKE2b-256 checksum How to use checksums |
e3ea759c59cdb2e3f580fcff098d09ae432b0192adaf2ff66d2b93e05caff0a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.
Transparency logRelease files / ai2_screen_renamer-0.3.1-py3-none-any.whl
| Download URL | ai2_screen_renamer-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeaebe6d96c2efe87b3170cbdade28ad93ef8c525b73d46946dbc5e8fc804954
|
|
BLAKE2b-256 checksum How to use checksums |
fe27ac2d34a026b4f9047efa24d97195f1ba6bdddc9253405823987d34b508ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.
Transparency logSecurity for ai2-screen-renamer 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ai2_screen_renamer-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.