Skip to content

Instantly share code, notes, and snippets.

@paulcalabro
Forked from philipperemy/pickle_view.py
Created October 26, 2021 01:17
Show Gist options
  • Save paulcalabro/cf0e96b640513963067cc2b530d7f6e1 to your computer and use it in GitHub Desktop.
Save paulcalabro/cf0e96b640513963067cc2b530d7f6e1 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'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment