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.3-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file hxml-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: hxml-0.0.3-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 | e4744f0b0f0fb9d35a820383e95ad1f66bd3689bc2720eebf559604b6a6c8500 |
|
MD5 | 221199a0de08574ee2c0cad53a9f79b6 |
|
BLAKE2b-256 | bf12ecc970cacda6593bf23dbfcaaa155097c501c810179530be8127f37428b3 |