{ "info": { "author": "mjrao", "author_email": "mjrao520@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "===============\npyxml2dict\n===============\n\npyxml2dict is an open source python library, which used for converting xml to python dict\n\npyxml2dict is licensed under the GPL-3.0\n\nPrefix the attribute in the dictionary @attribute , the value corresponding to key is #text\n\n\nInstalling\n===============\nInstall with pip:\n\n::\n\n $pip install pyxml2dict\n\nUsage\n===============\n\n::\n\n from pyxml2dict import XML2Dict\n\n if __name__ == '__main__':\n xml_str1 = \"\"\"12\"\"\"\n xml_str2 = \"\"\"2012\"\"\"\n xml2dict = XML2Dict()\n print xml2dict.fromstring(xml_str1)\n print xml2dict.fromstring(xml_str2)\n\n\n\n**print result**\n\n::\n\n {'root': {'items': {'item': ['1', '2']}, '@id': '1'}}\n\n {'root': {'items': {'item': [{'#text': '1', '@id': '0'}, '2']}, 'age': '20', '@id': '1'}}\n\n\nThanks\n===============\n\nIn XML2Dict , *_parse_node* algorithm comes from https://github.com/undefine1995/xml2dict, It's very useful. Thanks for undefine1994.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mjrao/pyxml2dict", "keywords": "xml2dict pyxml2dict", "license": "GPL-3.0", "maintainer": "", "maintainer_email": "", "name": "pyxml2dict", "package_url": "https://pypi.org/project/pyxml2dict/", "platform": "", "project_url": "https://pypi.org/project/pyxml2dict/", "project_urls": { "Homepage": "https://github.com/mjrao/pyxml2dict" }, "release_url": "https://pypi.org/project/pyxml2dict/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Convert XML to python Dict", "version": "1.0.1" }, "last_serial": 3081554, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "6a42345dcc998e9324723b33c87a09cc", "sha256": "7a42baa55dc66aae4b82d618e8d52c8af92c87427844a6bd43b3ab85402d3beb" }, "downloads": -1, "filename": "pyxml2dict-1.0.1.zip", "has_sig": false, "md5_digest": "6a42345dcc998e9324723b33c87a09cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3049, "upload_time": "2017-08-08T15:50:48", "url": "https://files.pythonhosted.org/packages/a5/50/959113bf081b09faa93be6093d49384161977fe3dfa922fccb3a8c586d1c/pyxml2dict-1.0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a42345dcc998e9324723b33c87a09cc", "sha256": "7a42baa55dc66aae4b82d618e8d52c8af92c87427844a6bd43b3ab85402d3beb" }, "downloads": -1, "filename": "pyxml2dict-1.0.1.zip", "has_sig": false, "md5_digest": "6a42345dcc998e9324723b33c87a09cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3049, "upload_time": "2017-08-08T15:50:48", "url": "https://files.pythonhosted.org/packages/a5/50/959113bf081b09faa93be6093d49384161977fe3dfa922fccb3a8c586d1c/pyxml2dict-1.0.1.zip" } ] }