Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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

This comment has been minimized.

Copy link

Matix-Media commented Sep 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.