Write a python function to serialize the following string into a dictionary. *Must pass time test*
$30-250 USD
In Progress
Posted over 3 years ago
$30-250 USD
Paid on delivery
**I AM ONLY CONSIDERING BIDS <= $40. THIS IS AN EASY PROGRAMMING TASK**
Fairly straight forward and fast project, just requires boilerplate I am unwilling to write. Given the following text:
"Manufacturer: Canon Inc.\nModel: Canon EOS REBEL SL1\n Version: 3-1.0.0\n Serial Number: 627e8f02ac046f8\nVendor Extension ID: 0xb (1.0)\n\nCapture Formats: JPEG\nDisplay Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105)\n\nDevice Capabilities:\n\tFile Download, File Deletion, File Upload\n\tNo Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Capture 2\n\tCanon Wifi support\n\nStorage Devices Summary:\nstore_00020001:\n\tStorageDescription: SD\n\tVolumeLabel: None\n\tStorage Type: Removable RAM (memory card)\n\tFilesystemtype: Digital Camera Layout (DCIM)\n\tAccess Capability: Read-Write\n\tMaximum Capability: 16079912960 (15335 MB)\n\tFree Space (Bytes): 9408774144 (8972 MB)\n\tFree Space (Images): -1\n\nDevice Property Summary:\nModel ID(0xd049):(read only) (type=0x6) 2147484486\nProperty 0xd402:(read only) (type=0xffff) 'Canon EOS REBEL SL1'\nProperty 0xd407:(read only) (type=0x6) 1\nProperty 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'\nProperty 0xd303:(read only) (type=0x2) 1\nBattery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 25% (25)\n"
write a function to return a dictionary as such:
{
'Manufacturer': 'Canon Inc',
'Model': 'Canon EOS REBEL SL1',
...
'Device Capabilities':
[
'File Download',
'File Deletion',
...
],
'Storage Devices Summary':
[
'store_00020001': {
'StorageDescription': 'SD',
...
}
},
'Model ID(0xd049)': '2147484486',
}
As we can see, this is a basic serialization task with some cleaning that requires only simple programming experience. Must only use python standard library functions and pass the following test.
from timeit import timeit
timeit(lambda: yourFunction(string)) <= 0.1s
I estimate that writing a good function for this will take ~1.5 hours.
Dear client.
As a python expert, I am so interested in your job.
I read your job carefully, then I can deliver the perfect script within 30 minutes.
Please ping me to discuss more.
Regards.
hello there
I have read your project outline and can do the task
its fairly simple for me its seems to find different part of string and then extract data and order them
feel free to contact me for more details
thank you
Hello, I read your description in detail. i can do this in a short time. I have experiences with python and can help you.
I have built many project using pyqt5, numpy, pandas, googlesearch, docker and so on.
I am very excited on your project, and I am ready to start work immediately. I am also have much availability to work at anytime. I wish to work for you, please open chat with me.
Thank you.
HI, I am the python programmer and embedded devices firmware developer myself so I can get the device info in dictionary list as you wish as listed in the description. I will finish it asap.
Thanks
Amine
Hi there,
this is really easy task and it is possible within some hours of time.
I am having 4 years if experience in python language and you can check my profile for the same.
Hoping for positive response
Thank You