xml_json_yaml_convert package¶
Submodules¶
xml_json_yaml_convert.converter module¶
Module to convert between XML, JSON, and YAML
- class xml_json_yaml_convert.converter.Converter(data=None)[source]¶
Bases:
object
Class to convert between XML, JSON, and YAML
- Parameters
data (String, Dict, fp(_io.TextIOWrapper)) – The data to convert to what you want
- from_json()[source]¶
Method to convert a String or File Processor of JSON to a Dict
- Return type
Dict
- Returns
JSON Data as a Dict
- Raises
TypeError – If data is not a String or fp(_io.TextIOWrapper)
- from_xml()[source]¶
Method to convert a String or File Processor of XML to a OrderedDict
- Return type
OrderedDict
- Returns
YAML Data as a OrderedDict
- Raises
TypeError – If data is not a String or fp(_io.TextIOWrapper)
- from_yaml()[source]¶
Method to convert a String or File Processor of YAML to a Dict
- Return type
Dict
- Returns
YAML Data as a Dict
- Raises
TypeError – If data is not a String or fp(_io.TextIOWrapper)
- to_json()[source]¶
Method to convert a Dict to a String JSON
- Return type
String
- Returns
JSON Data
- Raises
TypeError – If data is not a Dict
xml_json_yaml_convert.version module¶
Holds the version information for the package
Module contents¶
Init for xml_json_yaml