Skip to main content

mntm-asset-packer

An improved asset packer script to make the process of creating asset packs for the Momentum firmware easier. This script is designed to be backwards compatible with the original packer while adding new features for a better user experience.

Features

This improved packer adds several features over the original:

  • Pack specific asset packs: No need to pack everything at once.
  • Create command: Quickly scaffold the necessary file structure for a new asset pack.
  • Automatic file conversion: Automatically convert and rename image frames for animations.
  • Asset pack recovery: Recover PNGs and metadata from compiled asset packs. (Note: Font recovery is not yet implemented).
  • Backwards compatibility: Works the same way as the original packer by default, so you can use it without changing your workflow.

Installation

If you don't have uv installed, follow these instructions.

You can quickly run the script without installing, using this command:

uvx mntm-asset-packer help

To install, use this command:

uv tool install mntm-asset-packer
mntm-asset-packer help

With pip

To install with pip, you can use this command:

pip install mntm-asset-packer
mntm-asset-packer help

You may need to use pip3 instead of pip depending on your Python installation.

Standalone Mode

You can also copy the mntm_asset_packer.py file to your project directory and run it directly with Python. (Not recommended)

Setup venv

  1. Clone this repository and navigate into its directory.
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
    
  3. Install the required dependencies from requirements.txt:
    pip install -r requirements.txt
    

Usage

If you run the script directly, replace mntm-asset-packer with python3 mntm_asset_packer.py in the commands below.

mntm-asset-packer help : Displays a detailed help message with all available commands.

mntm-asset-packer version : Displays the version of the asset packer.

mntm-asset-packer create <Asset Pack Name> : Creates a directory with the correct file structure to start a new asset pack.

mntm-asset-packer pack <./path/to/AssetPack> : Packs a single, specified asset pack into the ./asset_packs/ directory.

mntm-asset-packer <./path/to/AssetPack> : Packs a single, specified asset pack into the ./asset_packs/ directory.

mntm-asset-packer pack all : Packs all valid asset pack folders found in the current directory into ./asset_packs/.

mntm-asset-packer : Same as mntm-asset-packer pack all,

mntm-asset-packer recover <./asset_packs/AssetPack> : Recovers a compiled asset pack back to its source form (e.g., .bmx to .png). The recovered pack is saved in ./recovered/<AssetPackName>.

mntm-asset-packer recover all : Recovers all asset packs from the ./asset_packs/ directory into the ./recovered/ directory.

mntm-asset-packer convert <./path/to/AssetPack> : Converts and renames all animation frames in an asset pack to the standard frame_N.png format.

More Information

Metadata

Release files for mntm-asset-packer 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mntm-asset-packer 1.2.1
File Size Uploaded
mntm_asset_packer-1.2.1.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mntm-asset-packer 1.2.1
File Interpreter ABI Platform
mntm_asset_packer-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.6 kB

Release files / mntm_asset_packer-1.2.1.tar.gz

Download URL mntm_asset_packer-1.2.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a8cc87ae9a9b07c0590f615b1d40a30a12e3eb7491af948d4aa6ed49a9b06f86
BLAKE2b-256 checksum
How to use checksums
f0b04d9b2f025667cd19ff2b1d82e41788eabe9a7975833166bb418d361c534d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 29, 2025.

Transparency log

Release files / mntm_asset_packer-1.2.1-py3-none-any.whl

Download URL mntm_asset_packer-1.2.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f91b03e10a514ac999f64a762ec6d7e58266764cec69859b1a9c01c21acfc62
BLAKE2b-256 checksum
How to use checksums
1fb8ff642ab0c4d2a2fc2f0e230e3829ea6229bbe5cff51c2a416eecbfeb18e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page