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
| System | Port | Version |
|---|---|---|
| OpenBSD | textproc/py-dict2xml | 1.7.8 |
| FreeBSD | textproc/py-dict2xml | 1.7.8 |
| DragonFly | textproc/py-dict2xml | 1.7.6 |
| HardenedBSD | textproc/py-dict2xml | 1.7.8 |
| GhostBSD | textproc/py-dict2xml | 1.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.