Skip to content

deathbyknowledge/ricklepick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

Attempt at a PM (unPickling Machine) in pure Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published