skip to navigation
skip to content

xmlpolymerase 1.1

XML (de-) serializer for simple python structures.


xmlpolymerase is a simple powerful serializer and deserializer for python-structures into XML. Possible structures are string, int, float, bool, list and dict.

The primary function of a polymerase is the polymerization of new DNA or RNA against an existing DNA or RNA template in the processes of replication and transcription. (Cite: Wikipeadia


This is a pure python module. The API is pretty simple, for more read the docstrings, an exampkle follows:

>>> from odict import OrderedDict
>>> teststructure = OrderedDict()
>>> teststructure['one'] = 'Eins'
>>> teststructure['two'] = 'Zwei'
>>> teststructure['three'] = 'Drei'
>>> teststructure['four'] = [True, 2, '3-2', 42.23]
>>> domnode = serialize(structure, nodename='object')
>>> print domnode.toprettyxml()
    <four type="list">
            <entry type="bool">
            <entry type="int">
            <entry type="float">
>>> structure = deserialze(domnode)
OrderedDict([('one', 'Eins'), ('two', 'Zwei'), ('three', 'Drei'), ('four', [True, 2, '3-2', 23.42])])


to Nicola Larosa and Michael Foord for the OrderedDict implementation, which is used and copied (unmodified) into this package in here. The code was published under a BSD-License. For details please read the contents of the file.


All code except is under the GNU General Public License GPL 2.0 or later.

Feedback, Bugreports, …

If you like to give the author feedback about this product just write a mail to <>.

If you have access to the collective you might want to commit bug-fixes direct to trunk or do enhancements on a branch. Anyway, the author would be happy to get a short mail about those changes.

– Jens Klein <>

File Type Py Version Uploaded on Size
xmlpolymerase-1.1.tar.gz (md5) Source 2008-03-29 13KB