BSD Ports

textproc/py-dict2xml 1.7.8 OpenBSD

convert a Python dictionary into an XML file

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
textproc, lang/python

Description

Super Simple utility to convert a python dictionary into an xml string.

from dict2xml import dict2xml

data = { 'a': 1, 'b': [2, 3], 'c': { 'd': [ {'p': 9}, {'o': 10} ], 'e': 7 } }

print (dict2xml(data, wrap="all", indent=" "))

In the other systems

SystemPortVersion
OpenBSDtextproc/py-dict2xml1.7.8
FreeBSDtextproc/py-dict2xml1.7.8
DragonFlytextproc/py-dict2xml1.7.6
HardenedBSDtextproc/py-dict2xml1.7.8
GhostBSDtextproc/py-dict2xml1.7.8

Install

Binary package:

pkg_add py3-dict2xml

From the ports tree:

cd /usr/ports/textproc/py-dict2xml && make install

Dependencies

Build dependencies 4
Run dependencies 1

No port depends on this one.