Saving data from odoo

I have created a Visual Doctype and I want to save the data received via XMLRPC from the Odoo program as DocType elements in the Visual Doctype created in the Frappe framework.

Which resources should I use? I’m not sure.

How can I test and run the code I have written?
In which folder should I put the code I have written?