Skip to content

Instantly share code, notes, and snippets.

@philipperemy
Created March 14, 2017 05:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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'))
@philipperemy
Copy link
Author

philipperemy commented Mar 14, 2017

First put it here /usr/bin/

Then from anywhere you can query a pickle file by:

pickle_view.py <my_pickle_file>

Cheers

@Matix-Media
Copy link

A new UI Version is Available to see Pickle files.
Visit:
https://github.com/Matix-Media/PickleViewer

@ch-hristov
Copy link

ch-hristov commented Apr 16, 2020

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

@philipperemy
Copy link
Author

philipperemy commented Apr 17, 2020

@ch-hristov thanks :)

@smrtinker
Copy link

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!?

@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