Skip to main content

PyLibMS

Python Versions LICENSE PyPI version Tests

PyLibMS is a library built in Python 3.11 and above for reading and writing of revision >=3 of the libMessageStudio (LMS) proprietary file formats from Nintendo. These include files generated for late Wii titles, Nintendo 3DS, Wii U, Mobile, Nintendo Switch/Switch 2 games

The following is supported:

Format Read Write Support
MSBT ✅ ✅ 1:1 reading and writing. Support for majority of sections. Full attribute (ATR1) decoding with configurations. Tag decoding 1:1 with the official Nintendo .mstxt file format.
UMSBT ✅ ✅ 1:1 reading and writing. Accessing, adding, inserting and deleting MSBT files within UMSBT archives.
MSBF ✅ ✅ 1:1 reading and writing flowcharts (FLW3). Support for custom node definitions, attaching names and descriptions to nodes. Altering parameter datatypes for flexibility between games.
MSBP ✅ ✅ 1:1 reading and writing. Support for adding/editing colors, styles, and source files. Viewable metadata for tags and attributes. Utilized as optional metadata for configuration generation.

Documentation

PyLibMS documentation is on readthedocs. A simple preview is below:

Reading

# MSBT
from lms.message.msbtio import read_msbt_path

msbt = read_msbt_path("Text.msbt")

# UMSBT
from lms.message.umsbtio import read_umsbt_path

umsbt = read_umsbt_path("TextU.umsbt")

# MSBP
from lms.project.msbpio import read_msbp_path

msbp = read_msbp_path("Project.msbp")

# MSBF
from lms.flowchart.msbfio import read_msbf_path

msbf = read_msbf_path("Flowchart.msbf")

Writing

# MSBT
from lms.message.msbtio import write_msbt_path

write_msbt_path("Out_text.msbt", msbt)

# UMSBT
from lms.message.umsbtio import write_umsbt_path

write_umsbt_path("Out_textu.umsbt")

# MSBP
from lms.project.msbpio import write_msbp_path

write_msbp_path("Project.msbp", msbp)

# MSBF
from lms.flowchart.msbfio import write_msbf_path

write_msbf_path("Out_Flowchart.msbf", msbf)

Adding/Editing Presets

To add or edit Preset, you may create an issue with the relevant yaml file and the game it is for.

Installation

Python version must be `>=3.11.

pip install PyLibMS

Pip Page

Build Instructions

Clone the repository, then run pip install.

git clone https://github.com/AbdyyEee/PylibMS.git
cd PyLibMS
pip install -e .

AI Disclaimer

Code for PyLibMS was hand-written, designed and maintained by me.

AI was utilized sparingly for API discussions, debugging and testing.

Credits & Sources

  • SS-Decomp: Referenced some parts of their MSBF decomp when adding the format to Nintendo-File-Formats and this library.
  • Nintendo-File-Formats by Kinnay: For existing information on the MSBT and MSBP file formats.
  • Trippixyz: For helping me get started general decompilation of the formats and general help.
  • AeonSake: Inspiration for UMSBT implementation and other bits of the library.

Metadata

Release files for PyLibMS 6.1.0

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

Source distribution (sdist)

Source distribution for PyLibMS 6.1.0
File Size Uploaded Provenance Actions
pylibms-6.1.0.tar.gz 134.9 kB With provenance Details for pylibms-6.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyLibMS 6.1.0
File Interpreter ABI Platform Actions
pylibms-6.1.0-py3-none-any.whl Python 3 none any Details for pylibms-6.1.0-py3-none-any.whl

Total release size: 295.3 kB

Release files / pylibms-6.1.0.tar.gz

Download URL pylibms-6.1.0.tar.gz
Size 134.9 kB
Tags Source
SHA-256 checksum
How to use checksums
27d432bc5a2501871de5dab5d5816334d8de498b7c30bfeb9c7d788c46456ab3
BLAKE2b-256 checksum
How to use checksums
b07abed9bc463b09517bbbbf82e1200857d323723f7cafcc57a1212ba9f3d853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

Release files / pylibms-6.1.0-py3-none-any.whl

Download URL pylibms-6.1.0-py3-none-any.whl
Size 160.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d39cdccd95e5aa1514318d357c1641fdcfaf36c52709f6518b2d657ca3c88335
BLAKE2b-256 checksum
How to use checksums
25d2a052fd11126b731dacaf0f375ed4743941ac1d5eb5ee5ed3dd6e978235be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 30, 2026.

Transparency log

Security for PyLibMS 6.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylibms-6.1.0.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 Nov 30, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

6.1.0 This release

2 release files Full provenance

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