Skip to main content

Welcome to SaxonC-HE

This is the official Saxonica Python wheel package for Saxon, an XML document processor. SaxonC provides APIs to run XSLT 3.0 transformations, XQuery 3.1 queries, XPath 3.1, and XML Schema validation.

The SaxonC release comes in separate wheels for the three product editions:

  • saxonche (SaxonC-HE: open-source Home Edition)
  • saxoncpe (SaxonC-PE: Professional Edition)
  • saxoncee (SaxonC-EE: Enterprise Edition)

SaxonC-PE and SaxonC-EE are commercial products that require a valid license key. Licenses can be purchased from the Saxonica online store. Alternatively a 30-day evaluation license is available free of charge. By downloading the software, you are agreeing to our terms and conditions.

For full documentation for the latest SaxonC release, see the SaxonC 12 documentation.

Why choose SaxonC?

The main reason for using SaxonC in preference to other XML tools available for Python is that it supports all the latest W3C standards: XSLT 3.0, XPath 3.1, XQuery 3.1, and XSD 1.1. It even includes experimental support for the draft 4.0 specifications currently under development.

About SaxonC

SaxonC is a version of Saxon developed by compiling the Java source code to native executables that run on the C/C++ platform, with extensions for PHP and Python. All features of Saxon have been ported, other than those (such as collations) that are necessarily platform dependent. In particular, SaxonC provides processing in XSLT, XQuery and XPath, and Schema validation. It therefore makes these processing capabilities available to a plethora of other languages that are strongly coupled to C/C++ such as PHP, Perl, Python, and Ruby.

About Saxonica

Saxon is developed by Saxonica, a company created in 2004 by Michael Kay, who was the editor of the XSLT 2.0 and 3.0 specifications in W3C. The original Saxon product on the Java platform has been continually developed for over 20 years, and has acquired a reputation for standards conformance, performance, and reliability.

Installation

pip install saxonche

Getting started

Either import the whole API:

from saxonche import *

Or specific modules:

from saxonche import PySaxonProcessor

The SaxonC API includes classes for constructing XDM data models and for a variety of processors. For full details see the SaxonC Python API documentation.

The following short example shows how to get the Saxon version from the PySaxonProcessor:

from saxonche import PySaxonProcessor

with PySaxonProcessor(license=False) as proc:
	print(proc.version)

It will print something like this:

SaxonC-HE 12.3 from Saxonica

Note: license=False requests the open-source version of Saxon, whereas license=True requests the commercial product - which requires a license file. SaxonC looks for the license key in the directory where the main SaxonC library has been installed, and the directory identified by the environment variable SAXONC_HOME.

Example: Running a transformation

The following basic example shows how an XSLT stylesheet can be run against a source XML document in Python using SaxonC:

from saxonche import *

with PySaxonProcessor(license=False) as proc:
 
xsltproc = proc.new_xslt30_processor()
document = proc.parse_xml(xml_text="<doc><item>text1</item><item>text2</item><item>text3</item></doc>")
executable = xsltproc.compile_stylesheet(stylesheet_file="test.xsl")
output = executable.transform_to_string(xdm_node=document)
print(output)

For more Python examples, and further details about installing and configuring the product, see the SaxonC 12 documentation.

Support

All users are welcome to use the public support site for reporting issues and seeking help (registration required). In addition, many questions are asked and answered on StackOverflow: please use the saxon tag.

Acknowledgement

We learned a lot about how to create Python wheels for Saxon from the Saxonpy wheel package, which is a third-party project on github.

Metadata

Release files for saxonche 12.3.0

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

Built distributions (wheels)

Table of built distributions (wheels) for saxonche 12.3.0
File Actions
saxonche-12.3.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for saxonche-12.3.0-cp311-cp311-win_amd64.whl
saxonche-12.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for saxonche-12.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
saxonche-12.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for saxonche-12.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
saxonche-12.3.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for saxonche-12.3.0-cp311-cp311-macosx_11_0_arm64.whl
saxonche-12.3.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for saxonche-12.3.0-cp311-cp311-macosx_10_9_x86_64.whl
saxonche-12.3.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for saxonche-12.3.0-cp310-cp310-win_amd64.whl
saxonche-12.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for saxonche-12.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
saxonche-12.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for saxonche-12.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
saxonche-12.3.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for saxonche-12.3.0-cp310-cp310-macosx_11_0_arm64.whl
saxonche-12.3.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for saxonche-12.3.0-cp310-cp310-macosx_10_9_x86_64.whl
saxonche-12.3.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for saxonche-12.3.0-cp39-cp39-win_amd64.whl
saxonche-12.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for saxonche-12.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
saxonche-12.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details for saxonche-12.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
saxonche-12.3.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for saxonche-12.3.0-cp39-cp39-macosx_11_0_arm64.whl
saxonche-12.3.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for saxonche-12.3.0-cp39-cp39-macosx_10_9_x86_64.whl
saxonche-12.3.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for saxonche-12.3.0-cp38-cp38-win_amd64.whl
saxonche-12.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for saxonche-12.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
saxonche-12.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details for saxonche-12.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
saxonche-12.3.0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for saxonche-12.3.0-cp38-cp38-macosx_11_0_arm64.whl
saxonche-12.3.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for saxonche-12.3.0-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 362.9 MB

Release files / saxonche-12.3.0-cp311-cp311-win_amd64.whl

Download URL saxonche-12.3.0-cp311-cp311-win_amd64.whl
Size 17.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
958a3e9d54bbdb0de4f655418c03f24fa9e9cc95b6faa1cb491d1e592e97ccb0
BLAKE2b-256 checksum
How to use checksums
ac67ab15d5ad104b2da8b5e3f2e467b322a99af61a446d333b6d2f06af72f637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL saxonche-12.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 19.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
bd88744e780b346000ef337323e845a3be22cdf8356f1068bd7e3c2783f12297
BLAKE2b-256 checksum
How to use checksums
469ed997d6d51289eec95d035e644833ad4f3a37d057325a09603b3476ee8a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL saxonche-12.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.7 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8be242d91d0690c1f2b178b9bf032ebe1c04f30dfed9ed6795a373be3d8337e8
BLAKE2b-256 checksum
How to use checksums
f3d956cbe80c1fa5eaf4b12cf49e147b780935b94b160fe57519a172fcd00e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL saxonche-12.3.0-cp311-cp311-macosx_11_0_arm64.whl
Size 17.3 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ff318156d91988dde7c76a5b5f92abcbd84fc2c18ba6a9e013cab3ec65ed80cb
BLAKE2b-256 checksum
How to use checksums
bfaaa91d83893f841cb3e685c2a60e2a78a92096ec645ce5a9894192ef068c43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp311-cp311-macosx_10_9_x86_64.whl

Download URL saxonche-12.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 17.2 MB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
4fbc2967f8a6ca4d0e30e9519cd89a89f9f24106b1b24b621fd008e5be71954b
BLAKE2b-256 checksum
How to use checksums
15d0c024bbc91a4ed1bebc4b92ca15b50befce02cf6f0e0510becb70be644ce6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp310-cp310-win_amd64.whl

Download URL saxonche-12.3.0-cp310-cp310-win_amd64.whl
Size 17.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
982afddb411a90b088cbfff3b7e126acc6ed214c9e90910c35d98ccaa4447016
BLAKE2b-256 checksum
How to use checksums
c16bcf0f1485cd165adaafc93a389a30263fefa5de380f617a2579cd47018ba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL saxonche-12.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 19.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
552120cee963f73160960d35849ed5d1c3326560e8baa29af6e2bb0753953e6a
BLAKE2b-256 checksum
How to use checksums
7ea92c429692b0c9be35f351ca75e7f43f9d3e5775676344dba30f26af63d946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL saxonche-12.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
0928db1784fea596c4bb8169d9824a64a4fa35b779e45cb446acaa6c9f3f92b1
BLAKE2b-256 checksum
How to use checksums
a787294fb84b440f30e28525d93c03ddc7b95c433d0019b6c7f4388a71b170a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL saxonche-12.3.0-cp310-cp310-macosx_11_0_arm64.whl
Size 17.3 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8132f0590e140f249bed5712ba0cac7071f60ed6171ffef32856cc717e54db93
BLAKE2b-256 checksum
How to use checksums
1453d509e1b3d02046c4519625d8730cc1d12962fa85fc5b88ed26871426a4ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL saxonche-12.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 17.2 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
c8f7301606f946a372bff6f4341ba70b8b16024e418c3b92067aa1cdd1d895b2
BLAKE2b-256 checksum
How to use checksums
f030e29462b55aaded1329857059465ce8d1121a06b6b1ca1825114b68caaacb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp39-cp39-win_amd64.whl

Download URL saxonche-12.3.0-cp39-cp39-win_amd64.whl
Size 17.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3f624d892f9705762d9d9e47984e9d0fe2cb5995ec92244b12ee96f3ea30cd31
BLAKE2b-256 checksum
How to use checksums
562d5f0b25767c7c8bf8ea483ad7ccc3022616a6fb93ca9a2761548c207ce466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL saxonche-12.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 19.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ca06e60d7b917ad261c4accc696c7c58a77f5a8e14227642afa1d1e96020f1f3
BLAKE2b-256 checksum
How to use checksums
5f31c992acf819474ff11495d2a6cd327bc7fd9fb61fc52c5725cd8ec4738069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL saxonche-12.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
d7c1d16688d2f6234d8dea90ae7fd4f87248f1c36f1a0d6be3a826432253eab2
BLAKE2b-256 checksum
How to use checksums
3f7d71356d56bf0fc21ad72a59a228e3b810cab48d5586654b202b11baac45e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL saxonche-12.3.0-cp39-cp39-macosx_11_0_arm64.whl
Size 17.3 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
096b957806069e799fa409745c5d195c98a977dc9565c248fac4c635230d2ea3
BLAKE2b-256 checksum
How to use checksums
f20651f1aba182c197a18ddfdc9bacf22f6b521352dec5016e8579837703d5df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL saxonche-12.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 17.2 MB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
8d9da806909c23fe9316bc7a5dc7a246d6352aa32cd0a4b16c734402f8cdde8b
BLAKE2b-256 checksum
How to use checksums
e0dfdc18712769f541d6e2a492a9f46b95f98449431d7bb1179e9a9cdf24945f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp38-cp38-win_amd64.whl

Download URL saxonche-12.3.0-cp38-cp38-win_amd64.whl
Size 17.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
cce7f890ca0a3ffa6208e98abe87a10bbe0fad4ea16c2c4147433cabacaa7506
BLAKE2b-256 checksum
How to use checksums
89b0365f83b27bf668c24476d78b8728d718c8410b06a4cdb4f9addc68b8f64e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL saxonche-12.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 19.6 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
715153b63f9d87a6066ac91f89eaa1e5475d77ab21b385a6cb9f8a19b371c8d1
BLAKE2b-256 checksum
How to use checksums
ece229e942125e675776e1e0b2764c763b2d8739e5cadc684d3cb64ccd3947fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL saxonche-12.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.6 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2387a2ea42dd1f33e20fa51dc9bb33e598ef3a398a6888842cdd846a7fc2b451
BLAKE2b-256 checksum
How to use checksums
a5c9ae3eb3dc09581f52d9b006eae6a082879d3c25b9457886359ac620c488e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp38-cp38-macosx_11_0_arm64.whl

Download URL saxonche-12.3.0-cp38-cp38-macosx_11_0_arm64.whl
Size 17.3 MB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e436573f23faabbab74dbc8a6fe075ead6d4e4f9a36181270a32e49b2f32ea6f
BLAKE2b-256 checksum
How to use checksums
0605dc3e3eb951596f025bac253fcb8a111536a59cfa0d26e0038d26e07116ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / saxonche-12.3.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL saxonche-12.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 17.2 MB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
99d12af7ea252a8aa06fe33a4c2c12b36a0186c94528e220618067cdfc840e49
BLAKE2b-256 checksum
How to use checksums
9bc92f9134667898441e9f6fb3205ca4e23c6cbcc1d4686c654586e75a06d2f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for saxonche 12.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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