Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

This version
History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting