3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
PyMsyt
MSBT editing in Python using MSYT
PyMsyt is a Python library wrapping the MSYT project in Rust. It uses a custom fork built as both a library and application. PyMsyt supports reading and writing MSBT files in binary, YAML, and JSON formats. Basic documentation:
API
Class pymsyt.Msbt
Class representing an MSBT file. This is just a thin wrapper over the Msyt type from
the Rust MSYT project providing a few convenient methods for Python use. Note that
manipulating the contents of an MSBT in code can only be done staightforwardly by converting
with to_dict() and from_dict(). This class cannot be directly instantiated. Instead,
create it through static parsing methods. Example use:
from pymsyt import Msbt
data = open("ArmorHead.msbt", "rb").read()
msbt = Msbt.from_binary(data)
msyt_text = msbt.to_yaml() # Convert MSBT to MSYT YAML
json_text = msbt.to_json() # Convert MSBT to JSON
msbt_dict = msbt.to_dict() # Convert to an editable Python dictionary
for entry, contents in msbt_dict["entries"].items() # Iterate MSBT text entries
print(f"{entry} = {contents}")
msbt_dict["entries"]["Armor_999_Head"] = { # Adding a new text entry
"contents": [{"text":"Some new helmet"}]
}
open("ArmorHead.msbt", "wb").write( # Saving modified file
Msbt.from_dict(msbt_dict).to_binary(big_endian=True)
)
Methods defined here:
to_binary(big_endian: bool) -> bytes
Serializes this MSBT file to bytes.
to_dict() -> dict
Converts the MSBT contents to a Python dict.
to_json() -> str
Generates a JSON representation of this MSBT file.
to_yaml() -> str
Generates a YAML representation of this MSBT file.
from_binary(data: BytesLike) -> Msbt
Parses an MSBT file from a byteslike object
from_dict(dict: dict) -> Msbt
Parses an MSBT file from a Python dictionary.
from_json(json: str) -> Msbt
Parses an MSBT file from a JSON representation.
from_yaml(yaml: str) -> Msbt
Parses an MSBT file from a YAML representation.
Class pymsyt.MsytError
Generic exception thrown for all errors with this library.
Metadata
Release files for pymsyt 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
3 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pymsyt-0.3.2-cp39-cp39-manylinux2010_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.12+ x86-64 | Details |
| pymsyt-0.3.2-cp38-none-win_amd64.whl | CPython 3.8 | none | Windows x86-64 | Details |
| pymsyt-0.3.2-cp38-cp38-manylinux2010_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.12+ x86-64 | Details |
| pymsyt-0.3.2-cp38-cp38-manylinux1_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.5+ x86-64 | Details |
| pymsyt-0.3.2-cp37-none-win_amd64.whl | CPython 3.7 | none | Windows x86-64 | Details |
| pymsyt-0.3.2-cp37-cp37m-manylinux2010_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.12+ x86-64 | Details |
| pymsyt-0.3.2-cp37-cp37m-manylinux1_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
Total release size: 5.8 MB
Release files / pymsyt-0.3.2-cp39-cp39-manylinux2010_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pymsyt-0.3.2-cp39-cp39-manylinux2010_x86_64.whl |
|---|---|
| Size | 863.7 kB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b5bcb78b75d2e143ee557fff5286e93f3f03c7eaf44d60dc152598e8f6500b96
|
|
BLAKE2b-256 checksum How to use checksums |
d6dfcbb0bd0ec28ef1a8a90122fd4ca9113cc20f8dadb0461ff8ec6fcb057f29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.9.4
|
Release files / pymsyt-0.3.2-cp38-none-win_amd64.whl
| Download URL | pymsyt-0.3.2-cp38-none-win_amd64.whl |
|---|---|
| Size | 736.2 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d9dc39a8632f6891bb8155aeba5697b82a6b7bd913c13cb87242cef9939f596e
|
|
BLAKE2b-256 checksum How to use checksums |
ec7b3205373eb00d61ab06fa8db843995891403df822843a37de55bfa3b619f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.8.3
|
Release files / pymsyt-0.3.2-cp38-cp38-manylinux2010_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pymsyt-0.3.2-cp38-cp38-manylinux2010_x86_64.whl |
|---|---|
| Size | 863.7 kB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b33ef7ac97031f26fb78162d35c8ec8afd61c4b81d3f30b8a3e1feae2fdbf22d
|
|
BLAKE2b-256 checksum How to use checksums |
39c489c669d15f38af0251c709b847ca15e43385de1f333cb84376730dea18f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.9.4
|
Release files / pymsyt-0.3.2-cp38-cp38-manylinux1_x86_64.whl
| Download URL | pymsyt-0.3.2-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 851.4 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
b61492baaae234b6ed054c39968de07f84b171e398e386d09641c021decc8706
|
|
BLAKE2b-256 checksum How to use checksums |
cb9c5f010962d275cdd64c21beb2fef4076c04f6f396c399e7f744956e621768
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.8.3
|
Release files / pymsyt-0.3.2-cp37-none-win_amd64.whl
| Download URL | pymsyt-0.3.2-cp37-none-win_amd64.whl |
|---|---|
| Size | 736.2 kB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8bbe74a9740b61a982bfabdd7376fadfa8011d039efebf6a6b1f5d63c051e95f
|
|
BLAKE2b-256 checksum How to use checksums |
cb718249541b25340db956f0d8d69871f4f4a001e7a892909271e7f7253891c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.8.3
|
Release files / pymsyt-0.3.2-cp37-cp37m-manylinux2010_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pymsyt-0.3.2-cp37-cp37m-manylinux2010_x86_64.whl |
|---|---|
| Size | 863.6 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cd5c58036304947ce333de7b7f532332ffd1dd7b97ccc41b0e55aa05c31bf36c
|
|
BLAKE2b-256 checksum How to use checksums |
b424adc88f86d35dcbd5627d56f671d502caaaf55748c62a3903742b99d69d07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.9.4
|
Release files / pymsyt-0.3.2-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | pymsyt-0.3.2-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 851.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
bd0cb81373cdff02941d66372c184754353b3afebfbe56a0ca28e8e01a15e5f9
|
|
BLAKE2b-256 checksum How to use checksums |
e9498f56cffb124973105cd72726b1e1a54b136ca5b7dfc56c3ae0e2b9a1b5e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.8.3
|