Skip to main content

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 Release notifications | RSS feed

This release

0.9.1 This release

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