Convert XML to Python objects
untangle is a tiny Python library which converts an XML document to a Python object. Features: - Siblings with similar names are grouped into a list. - Children can be accessed with parent.child, attributes with element['attribute']. - You can call the parse() method with a filename, an URL or an XML string. - Substitutes -, . and : with _ <foobar><foo-bar/></foobar> can be accessed with foobar.foo_bar, <foo.bar.baz/> can be accessed with foo_bar_baz and <foo:bar><foo:baz/></foo:bar> can be accessed with foo_bar.foo_baz
$
pkg install py311-untangleOrigin
textproc/py-untangle
Size
33.7KiB
License
MIT
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
1 packages