Skip to content

HazarZYGC/Pythonic-Convertor-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implementation Details & Requirements

● The tool takes command line arguments according to the formats you want to convert between them. A typical command line usage is as follows:

python <filename> <input file> <output file/xsd file> <type>


● The first argument, is the python file for conversion operations, refers to the source filename which will be converted and the third one, <output file>, refer to the target filename, or XSD file. The last argument, , defines conversion type (1=CSV to XML, 2=XML to CSV, 3=XML to JSON, 4=JSON to XML, 5=CSV to JSON, 6=JSON to CSV,7=XML validates with XSD)

● The sample command line usage converting from XML to JSON as follows:
python student_id.py test.xml test.json 3

###Csv explanation:

alt text