Crates.io | marshal-parser |
lib.rs | marshal-parser |
version | 0.1.1 |
source | src |
created_at | 2024-06-13 15:33:47.165374 |
updated_at | 2024-06-15 11:04:56.909533 |
description | Parser for Python's "marshal" serialization format |
homepage | |
repository | https://github.com/decathorpe/marshal-parser |
max_upload_size | |
id | 1270751 |
size | 409,948 |
This is a Rust port of the marshalparser project, which is written in Python.
It provides both a command-line interface and a library interface for parsing
data in Python's internal "marshal" serialization format, functionality for
pretty-printing the resulting data structures, and some basic data manipulation,
for example, removing unused reference flags in order to make pyc
files more
reproducible.
The default feature set is intentionally minimal. Dependencies that are only
required for building the command-line interface can be enabled with the cli
flag. Pretty-printing of byte strings can be enabled with the fancy
feature.
This project supports parsing "marshal" data produced by CPython versions between 3.8 and 3.13.