BSD Ports

textproc/py-untangle 1.2.1_1 DragonFly

Convert XML to Python objects

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, textproc
Package size
8.9 KiB, 33.6 KiB installed

Description

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

In the other systems

SystemPortVersion
DragonFlytextproc/py-untangle1.2.1_1
FreeBSDtextproc/py-untangle1.2.1_1

Install

Binary package:

pkg install py311-untangle

From DPorts:

cd /usr/dports/textproc/py-untangle && make install clean

Dependencies

Run dependencies 2