py-xml
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
Metadata
Release files for py-xml 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py-xml-1.0.tar.gz | 11.0 kB | Without provenance | Details |
Release files / py-xml-1.0.tar.gz
| Download URL | py-xml-1.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd06602fadec7b3326ab828d25b15fd9c9fb53fa45206269ec965c0afabbc3fb
|
|
BLAKE2b-256 checksum How to use checksums |
90024a3cf06d254c70334ebf028e0bcd595c6f265ce1f1ed752bf2957dd8ba08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for py-xml 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.