GitXplorerGitXplorer
d

marshal-parser

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
03632a0d3a1a753946930939d36eb98c7c1adecb

improve pretty-printing: also print object reference IDs

ddecathorpe committed 7 months ago
Verified
0b53e65e774477c7b0585c7369ddd5f2a02990d7

cli: fix debug logging

ddecathorpe committed 7 months ago
Verified
5efd847bf61731924a09c887efa9f75988b7b79d

Release 0.1.1

ddecathorpe committed 7 months ago
Verified
775cea20c22cd91e02e9007c26245707fe96e0f7

add categories and keywords to crate metadata

ddecathorpe committed 7 months ago
Verified
7a88b67c2c7608bcfe7a4ed5773f75772a59a35f

Release 0.1.0

ddecathorpe committed 7 months ago
Verified
25376c42b7da545d8aee62bf52915e00f337e614

add benchmarks, simplify code (and make it ~5-10% faster)

ddecathorpe committed 7 months ago

README

The README file for this repository.

Parser for Python's "marshal" serialization format

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.