Skip to main content

Serialize Python objects to XML using an XSL stylesheet.

Project description

pyxslt makes it easy to turn Python objects into XML documents. In addition to basic XML serialization, pyxslt can also apply an XSL stylesheet to the serialized XML fragments. You could, for example, use pyxslt to convert the results of an SQLObject query to an XHTML file.

All Python objects given to pyxslt are converted into their string representations. pyxslt focuses on serializing objects in such a way as to make the construction of XSL stylesheets as easy as possible. As a result, pyxslt’s XML serialization is usually not reversible.

In other words, pyxslt is not a replacement for pickle, marshal, shelve, or any of the other true serialization modules. pyxslt is designed with one-way XSL transformation in mind.

pyxslt makes use of libxml2 to build its internal XML documents and libxslt to perform XSL transformations. Both packages must be installed in order for pyxslt to do its job.

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page