XML bindng library for Python
Installation
The lastest stable is py-xml-1.0.tar.gz
python setup.py install
Getting Start
xml data(test.xml):
<root>
<group name="test">
<family>green</family>
</group>
<parent name="green">
<child name="jim" age="23" sex="male">
<address>Shenzhen</address>
<phone>18607578001</phone>
</child>
<child name="lucy" age="21" sex="female" address="Chongqing">
<address>Guangzhou</address>
<phone>18607578002</phone>
</child>
</parent>
</root>
demo for py-xml:
import py_xml
bind_obj = py_xml.parse('test.xml')
print bind_obj.get('root').get('parent')[0].get('child')[0].get('name').get('_attr_') #print: jim
print bind_obj.get('root').get('parent')[0].get('child')[0].get('address').get('_node_') #print: Shenzhen
print py_xml.to_xml(bind_obj) #print above xml
Documentation
Full documentation is hosted on [HERE](). Sources are available in the docs/ directory.
License
py-xml is licensed under the Apache License, Version 2.0. See LICENSE for full license text
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-xml-1.0.tar.gz
(11.0 kB
view details)
File details
Details for the file py-xml-1.0.tar.gz.
File metadata
- Download URL: py-xml-1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd06602fadec7b3326ab828d25b15fd9c9fb53fa45206269ec965c0afabbc3fb
|
|
| MD5 |
6ba9e5c1336f6467cc346e8c97ae2b74
|
|
| BLAKE2b-256 |
90024a3cf06d254c70334ebf028e0bcd595c6f265ce1f1ed752bf2957dd8ba08
|