FreeBSD Ports

textproc/py-untangle 1.2.1_1

Convert XML to Python objects

Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
textproc, python
Package size
9.7 KiB, 31.5 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

Install

As a binary package — by origin, or by package name:

pkg install textproc/py-untangle
pkg install py312-untangle

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-untangle>0:textproc/py-untangle

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.1_11.2.1_11.2.11.2.1_11.2.1_1
FreeBSD:14:quarterly1.2.1_11.2.1_1n/a1.2.1_11.2.1_1
FreeBSD:15:latest1.2.1_11.2.1_1n/a1.2.1_11.2.1_1
FreeBSD:15:quarterly1.2.1_11.2.1_1n/an/an/a
FreeBSD:16:latest1.2.1_11.2.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

The full lists below include those, and their dependencies in turn.

All build dependencies 15
All run dependencies 8

Configuration

No options to configure.

USES
python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
untangle-1.2.1.tar.gz4809ae76522472722b31b303d5100c3c6f8b7dd4952b7b6c9d31e6d7b4a56f1a6d30
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.