Skip to content

JordanCWalsh/JSON-comparison-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

JSON-comparison-prototype

Internship Project: JSON comparison prograon in Python 3, still in development stage, not set up for public use yet

Python Versions DeepDiff

##Use Cases ###This Prototype is designed to:

  1. use parameters set by command-line arguments OR default to variables initialized in the code
  2. download fresh json data from a URL into an OrderedDict object
  3. if an old json fil is present, load yesterday's json data from '.hcl' file
  4. else if old file does not exist, new json will be saved as the old json file (for next time you run the script)
  5. contrast json data in step 1 to json data in step 2
  6. print the list of newly added hardware to csv file
  7. save new json over old json 'hcl' file
  8. 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

About

Internship Project: JSON comparison program in Python 3, still in development stage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages