No project description provided
Project description
hxml
hxml is a simple xml parser for Python 3.12
Examples
<!-- test.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<le_epic_xml>
<name>Epic XML</name>
<cool>
<a>as</a>
<b>you</b>
<c>see</c>
<d>it</d>
<e>works!</e>
</cool>
</le_epic_xml>
# epic_xml.py
from hxml import XML
xml = XML("test.xml")
epic_xml = xml.get_root_item("le_epic_xml")
print(epic_xml) # output: {'name': 'Epic XML', 'cool': {'a': 'as', 'b': 'you', 'c': 'see', 'd': 'it', 'e': 'works!'}}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
hxml-0.0.2-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file hxml-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: hxml-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ce04761642445d5ac3c4186cfd23ab484165b35dc71f8cd1e8222097bee03c |
|
MD5 | bfb4d0fe7e36d7e6728a14d7255ffa87 |
|
BLAKE2b-256 | bb239371debee5de8aadfe1d688735bcfd824104f7288e8e2e93731dd80ddc3e |