Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Overview

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 http://en.wikipedia.org/wiki/Polymerase)

Usage

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')
<object>
    <one>
            Eins
    </one>
    <two>
            Zwei
    </two>
    <three>
            Drei
    </three>
    <four type="list">
            <entry type="bool">
                    True
            </entry>
            <entry type="int">
                    2
            </entry>
            <entry>
                    3-2
            </entry>
            <entry type="float">
                    42.23
            </entry>
    </four>
</object>
<BLANKLINE>
>>> structure = deserialze(domnode)
OrderedDict([('one', 'Eins'), ('two', 'Zwei'), ('three', 'Drei'), ('four', [True, 2, '3-2', 23.42])])

Thanks

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

License

All code except odict.py 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 <dev@bluedynamics.com>.

If you have access to the plone.org 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 <jens@bluedynamics.com>

Release files for xmlpolymerase 1.0-beta1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmlpolymerase 1.0-beta1
File Size Uploaded
xmlpolymerase-1.0-beta1.tar.gz 13.9 kB Details

Release files / xmlpolymerase-1.0-beta1.tar.gz

Download URL xmlpolymerase-1.0-beta1.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
681d6f27b52fdc6cd346c9ed49ff4fb5a6ec0a02f71ecad0260316affc406bea
BLAKE2b-256 checksum
How to use checksums
db5d62068ca2fa4d5d1a8071d49698bf7835839f2fad3a9e188b3fcd60db679d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.1

1 release file

This release

1.0-beta1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page