Convert Python's pickled data into XML, or excel format
€30-250 EUR
已完成
已发布超过 9 年前
€30-250 EUR
货到付款
Hello folks,
I have multiple data files, stored in python's .pkl format. I need to create some utility, which would unpickle data, decode them and save in XML or any other readable format (or into MS Excel), so it could be later imported into Oracle database.
A test file which needs to be converted is attached.
As an output is expected, an utility (script) which will read all files in selected directory and converts them to desired formats (xml) into output directory.
Should be an easy task for somebody who is familiar with python.
Thanks,
Tomas
A basic script to start:
import pprint, pickle, json
pkl_file = open('[login to view URL]', 'rb')
data1 = [login to view URL](pkl_file)
[login to view URL](data1) >> print unpickled structired data. This output needs to be converted into XML format
data_json = [login to view URL](data1) >> this fails
[login to view URL]()
Hello,
I am a python developer. I will be glad to help. I can use openpyxl package to create excel output file for you. Or using lxml library for xml generation.
Regards,