While developing integrations, the process to map information between various formats can be a pain!
I developed a small library that help me to map long files for the database https://gist.github.com/MaxMorais/55458cdebce54d36e568a169f6ee95a8
The sample.json
is generated from a giant XML, using xmltodict
library.
The mapr.py
have some functions to help with mapping the attributes in various levels, to an standard level to prepare to store to db.
The sample.py
have a example of this functions working.
Have some knew issues like the cleaning of the unused attributes, and the conditional processors!
Any tip, idea or comment is appreciated!