Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 845 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 845 Bytes

Rickle Pick

ricklepick is a library for unpickling Python pickle files in pure Rust. It implements the PM as described in the pickletools implementation. Should allow for safe reading and conversion to Rust types.

crabified pickle rick?

Usage

ricklepick defines its own Value type that encapsulates all possible Python values with a corresponding Rust value. The load function reads a bytestream and starts decoding it, returning the resulting Value.

The cli example allows you to try it out easily:

$ cargo run --example=cli -- mypicklefile
Opening file mypicklefile

(1, 2, 3, 4, (5, 6, 7), 'Test', ('This is just a test.', [2, 4, 6, 8]), 'One', 'Two', 'Three')