Thursday, June 30, 2022

Re: NEW: textproc/py-dict2xml

On Thu, Jun 30, 2022 at 04:34:57PM +0200, Stuart Henderson wrote:
> ok?

ok

>
>
> Information for inst:py3-dict2xml-1.7.1
>
> Comment:
> 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=" "))
>
> Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org>
>
> WWW: https://github.com/delfick/python-dict2xml
>



--

Tracey Emery

No comments:

Post a Comment