Skip to content

Instantly share code, notes, and snippets.

@philipperemy
Created March 14, 2017 05:52
Show Gist options
  • Save philipperemy/8c5f4e314a677594f5d11df7885afdf3 to your computer and use it in GitHub Desktop.
Save philipperemy/8c5f4e314a677594f5d11df7885afdf3 to your computer and use it in GitHub Desktop.
Pickle viewer in command line! Put it here /usr/bin/pickle_view.py
#!/usr/bin/env python
import pickle
import sys
if __name__ == '__main__':
argv = sys.argv
if len(argv) <= 1:
print 'Specify pickle file as parameter.'
else:
print pickle.load(open(argv[1], 'rb'))
@ch-hristov
Copy link

ch-hristov commented May 6, 2020

Hi, I developed this - https://pickleviewer.com/ a website to view pickle files 100% safely (no data is transferred)

Is this tool of yours still working? I just tried, and it does nothing!?

Hi, this works for all pickle files made with python 3.3 and below. Newer formats are not yet supported (those that are made with higher version of python). Still working on it :) ch-hristov/Pickle-viewer#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment