xml2python code xml to python code pip install addict pip install xmltodict example: python3 xml2python 1.xml show xml tree python3 xml2python 1.xml -tree