Write a python function to serialize the following string into a dictionary. *Must pass time test*


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.

Taidot: Python

Näytä lisää: write javascript function mysql query, can write select function javascript, write search function website php, write complete function will return larger integers, write duration function module vba, need help write python script operate telit module, write python web bot, need write python script telit gc864quad module, function phonecallbyval phonenumber string byval destname string, write assembly code reads number string converts integer, write program function add integers, small list write similar function, python function latitude decimal degrees conversion php, write basic function moneyexplain detail derivatives function money , write complete function return larger integers , write program function calculator, write a function to convert the image to grayscale python, write a python function that takes a list and returns a new list with unique elements of the

Tietoa työnantajasta:
( 4 arvostelua ) San Diego, United States

Projektin tunnus: #28304611

Myönnetty käyttäjälle:


Respected Sir / Madam, I am a Python developer who can serialize this for you . I have already started the serialization work . If you give me your project I will do the project justice. The price is negotiable. Chec Lisää

$40 USD 2 päivässä
(5 Arvostelua)

10 freelanceria on tarjonnut keskimäärin $60 tähän työhön


Hello, I may write this function for you. There will be only standard libraries or without them. If you want I can start right now

$40 USD 7 päivässä
(7 arvostelua)

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 y Lisää

$50 USD 1 päivässä
(9 arvostelua)

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

$30 USD 1 päivässä
(3 arvostelua)

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.

$40 USD 7 päivässä
(5 arvostelua)

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 ver Lisää

$150 USD 1 päivässä
(2 arvostelua)

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

$30 USD 1 päivässä
(6 arvostelua)

Hi, Dear. I can do your timeline. I have been completed many similar projects before and I am working in these branches for 8+ years. I look forward to hearing from you. Kind Regards

$50 USD 7 päivässä
(7 arvostelua)

dear. I read your job and very interested. if you choose me, i will complete your test task in your dedline. Thanks.

$140 USD 7 päivässä
(1 arvostelu)

i will do this project as early as possible. i am currently working on python in my university. i will do it surely

$30 USD 1 päivässä
(0 arvostelua)