{ "info": { "author": "Ryan Palo", "author_email": "ryan@thepalos.com", "bugtrack_url": null, "classifiers": [], "description": " \r\r\n Makes managing XML a lot easier by making an XML document look like nested Python objects.\r\r\n \r\r\n ## Installing\r\r\n \r\r\n Install via `pip`:\r\r\n \r\r\n pip install xml-objects\r\r\n \r\r\n ## Usage\r\r\n \r\r\n See [sample.xml](sample.xml) for the structure used in these examples. Taken unashamedly from Microsoft's [Sample XML](https://msdn.microsoft.com/en-us/library/ms762271.aspx). The results of the code below can be seen by running [`xml_node.py`](xml_node.py) directly.\r\r\n \r\r\n ```python\r\r\n xml = XMLNode.from_file('sample.xml')\r\r\n print(xml.book.price)\r\r\n for book in xml.book:\r\r\n print(f\"{book.title.value}, {book.author.value}, {book.price.value}\")\r\r\n ```\r\r\n \r\r\n Which will output:\r\r\n \r\r\n ```\r\r\n PS [34] master -> python .\\xml_node.py\r\r\n \r\r\n ['44.95', '5.95', '5.95', '5.95', '5.95', '4.95', '4.95', '4.95', '6.95', '36.95', '36.95', '49.95']\r\r\n XML Developer's Guide, Gambardella, Matthew, 44.95\r\r\n Midnight Rain, Ralls, Kim, 5.95\r\r\n Maeve Ascendant, Corets, Eva, 5.95\r\r\n Oberon's Legacy, Corets, Eva, 5.95\r\r\n The Sundered Grail, Corets, Eva, 5.95\r\r\n Lover Birds, Randall, Cynthia, 4.95\r\r\n Splish Splash, Thurman, Paula, 4.95\r\r\n Creepy Crawlies, Knorr, Stefan, 4.95\r\r\n Paradox Lost, Kress, Peter, 6.95\r\r\n Microsoft .NET: The Programming Bible, O'Brien, Tim, 36.95\r\r\n MSXML3: A Comprehensive Guide, O'Brien, Tim, 36.95\r\r\n Visual Studio 7: A Comprehensive Guide, Galos, Mike, 49.95\r\r\n ```\r\r\n \r\r\n ## Future Ideas\r\r\n \r\r\n - Script to drop into a shell with the functionality of XMLNode. Optionally, with an argument to pre-load an XML file.\r\r\n - The `__str__` method should probably print out available child-nodes for ease of exploration.\r\r\n - Open from URL?\r\r\n \r\r\n ## Contributing\r\r\n \r\r\n I'd love to have people contribute. Feel free to open a pull request and we'll talk about it!\r\r\n \r\r\n ## Code of Conduct\r\r\n \r\r\n See the [Code of Conduct](CODE_OF_CONDUCT.md).\r\r\n \r\nKeywords: data xml interface update modify investigate\r\nPlatform: UNKNOWN\r\nClassifier: Development Status :: 3 - Alpha\r\nClassifier: Intended Audience :: Developers\r\nClassifier: Topic :: Text Processing :: Markup :: XML\r\nClassifier: License :: OSI Approved :: MIT License\r\nClassifier: Programming Language :: Python :: 3\r\nClassifier: Programming Language :: Python :: 3.6\r\nDescription-Content-Type: text/markdown\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rpalo/xml-objects", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "xml-objects", "package_url": "https://pypi.org/project/xml-objects/", "platform": "", "project_url": "https://pypi.org/project/xml-objects/", "project_urls": { "Author Website": "https://assertnotmagic.com", "Homepage": "https://github.com/rpalo/xml-objects" }, "release_url": "https://pypi.org/project/xml-objects/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Allows investigation and manipulation of XML data with objects.", "version": "0.1.3" }, "last_serial": 3752785, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "893cfb61739e5953f211bfd899749b84", "sha256": "4059136b5e560af04badafcda84b5448c9ecb88f9bb305838d487e4c41294f30" }, "downloads": -1, "filename": "xml_objects-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "893cfb61739e5953f211bfd899749b84", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1897, "upload_time": "2018-04-10T15:54:32", "url": "https://files.pythonhosted.org/packages/5c/b5/cbd236dcc1a01b6b28317ae59ea3e5112df1f508d9d5a3141bff9281b6d2/xml_objects-0.1.0-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "969630b2690b8006e65a319e8b5359e8", "sha256": "0036a00cb9077efe6d277aa03b6662902b97af526314f088511baaf0292ecd7d" }, "downloads": -1, "filename": "xml_objects-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "969630b2690b8006e65a319e8b5359e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1896, "upload_time": "2018-04-10T16:10:23", "url": "https://files.pythonhosted.org/packages/46/b3/ad6cc38e169807b2e11182472c29d285cbc3f101b932db13d63e8a1b4ce7/xml_objects-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64584b0a485d34ccbda0785e473a3ae1", "sha256": "04e8ee1e277708653b9a77006d3548dea2d1652cf6b523a078e4c1158f37207f" }, "downloads": -1, "filename": "xml-objects-0.1.1.tar.gz", "has_sig": false, "md5_digest": "64584b0a485d34ccbda0785e473a3ae1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2018-04-10T16:15:56", "url": "https://files.pythonhosted.org/packages/76/f7/ecaa037295ba7607f73e394c2665f8cfc676b7c83595c1621a08da956209/xml-objects-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c52234624d98aaea3d62e1ca185e153e", "sha256": "42d5c2914fd07ba721126721f458b39c4a5e8d7b321da4a5c923ce6effd6f13e" }, "downloads": -1, "filename": "xml-objects-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c52234624d98aaea3d62e1ca185e153e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3582, "upload_time": "2018-04-10T16:22:21", "url": "https://files.pythonhosted.org/packages/c3/2f/d2ee10a037984bf41ac5cd5a44f305c6d77c20ccde1891c705c935ec44c9/xml-objects-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d2e5cc6a43135885e276afb0a94a019c", "sha256": "6f3e0ed696fda7867c22df4c07409346dccc632bd4281233a09ae250ffb02007" }, "downloads": -1, "filename": "xml-objects-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d2e5cc6a43135885e276afb0a94a019c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2018-04-10T16:44:28", "url": "https://files.pythonhosted.org/packages/8f/5d/c25eea9ad246ff0cffe88bb9d927d48e687dc18e85b29c8f2f87779438b0/xml-objects-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d2e5cc6a43135885e276afb0a94a019c", "sha256": "6f3e0ed696fda7867c22df4c07409346dccc632bd4281233a09ae250ffb02007" }, "downloads": -1, "filename": "xml-objects-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d2e5cc6a43135885e276afb0a94a019c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2018-04-10T16:44:28", "url": "https://files.pythonhosted.org/packages/8f/5d/c25eea9ad246ff0cffe88bb9d927d48e687dc18e85b29c8f2f87779438b0/xml-objects-0.1.3.tar.gz" } ] }