Internship Project: JSON comparison prograon in Python 3, still in development stage, not set up for public use yet
##Use Cases ###This Prototype is designed to:
- use parameters set by command-line arguments OR default to variables initialized in the code
- download fresh json data from a URL into an OrderedDict object
- if an old json fil is present, load yesterday's json data from '.hcl' file
- else if old file does not exist, new json will be saved as the old json file (for next time you run the script)
- contrast json data in step 1 to json data in step 2
- print the list of newly added hardware to csv file
- save new json over old json 'hcl' file
- catch a few common errors
!!! PLEASE NOTE !!!
each time you run this script you will OVERWRITE the 'json_old.hcl' file PERMANENTLY, no undo here :)
##Command Line Arguments ###Calling the script with Required args
$ python JSON_comparison_prototype.py -oldPath OLDFILEPATH -urlAddress URLofJSON -csvpath CSVFILEPATH
###Required args and Optional args explained
#Required
'-o' or '--oldPath' #type string, goes first in command line call
'-u' or '--urlAddress' #type string, goes second in command line call
'-c' or '--CSVpath' #type string, goes third in command line call
#Optional
'-l' or '--consoleLog' #file path where logs.txt will output if desired,
#type string, goes fourth in command line call##Changelog
- v Beta-1-0-2: Initial commit for development testing and user feedback
##Author Jordan C Walsh