Skip to content

Instantly share code, notes, and snippets.

@romgapuz
romgapuz / pickle2json.py
Created May 18, 2020 07:26
Tool for converting Pickle to JSON using this simple Python Command Line program
"""
Pickle2JSON is a simple Python Command Line program for converting Pickle file to JSON file.
Arguments: Only one (1) argument is expected which is the pickle file.
Usage: python pickle2json.py myfile.pkl
Output: The output is a JSON file bearing the same filename containing the JSON document of the converted Pickle file.
"""
# import libraries
import pickle