OpenBSD ports

The textproc/py-dict2xml,python3 port

py3-dict2xml-1.7.5p0 – small utility to convert a Python dictionary into an XML

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="  "))

WWW: https://github.com/delfick/python-dict2xml
Categories:
lang/python textproc

Library dependencies

Build dependencies

Run dependencies