-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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