Skip to main content

Official Saxonica python package for the SaxonC-HE 12.2 processor: for XSLT 3.0, XQuery 3.1, XPath 3.1 and XML Schema processing.

Project description

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.2 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

saxonche-12.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (17.1 MB view details)

Uploaded PyPymacOS 10.9+ x86-64

saxonche-12.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (17.1 MB view details)

Uploaded PyPymacOS 10.9+ x86-64

saxonche-12.2.0-cp311-cp311-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.11Windows x86-64

saxonche-12.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

saxonche-12.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

saxonche-12.2.0-cp311-cp311-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

saxonche-12.2.0-cp311-cp311-macosx_10_9_x86_64.whl (16.9 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

saxonche-12.2.0-cp310-cp310-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.10Windows x86-64

saxonche-12.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

saxonche-12.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

saxonche-12.2.0-cp310-cp310-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

saxonche-12.2.0-cp310-cp310-macosx_10_9_x86_64.whl (16.9 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

saxonche-12.2.0-cp39-cp39-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.9Windows x86-64

saxonche-12.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

saxonche-12.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

saxonche-12.2.0-cp39-cp39-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

saxonche-12.2.0-cp39-cp39-macosx_10_9_x86_64.whl (16.9 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

saxonche-12.2.0-cp38-cp38-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.8Windows x86-64

saxonche-12.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

saxonche-12.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

saxonche-12.2.0-cp38-cp38-macosx_11_0_arm64.whl (16.9 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

saxonche-12.2.0-cp38-cp38-macosx_10_9_x86_64.whl (16.9 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file saxonche-12.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2f22ac9c979b647a3b626757331ec9bfccfcbfba4f6ebedc282cf91b83912172
MD5 92f39d5f8bc48bae5c1138cf5c0526a9
BLAKE2b-256 570af5418787b7155c4b40c6aa79b5615a482a1d8ad339918fec665676805c1d

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c2dac512f191b4d8eafc88583d9bcb57ea7226a7126fdada9fd0c6444077b947
MD5 43cee00c95c1865e24e48d57f3efefd3
BLAKE2b-256 1915784819e9cb2c0332729f16d9e16795ebaae96af7f4bc6958696651db18b0

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: saxonche-12.2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for saxonche-12.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bbff6c07abdd9916c1e471e237e75205e0edf13a33007b8271b65b658a4d40e
MD5 2740fcddf4c3545f77e817c67e06d082
BLAKE2b-256 8284ec6a6d1abb0f5b310496eaed3b8e40ba605ebeda51f3fcc523d8583e26e4

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba64a811d864171ebe563242c06a82fc64b54d550c4b8c41b2512e575452b046
MD5 55969c24896537ce5a17c5d6e906989b
BLAKE2b-256 0083b1885ba89870fab781d1def6fff1cd5a42ef537560e69dd6a45020443334

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1329ad625f8afe9c947c262f664291025ad3535e0642c183988e5c6bc732742b
MD5 3fae6e64c87aca2711a2609c5e3f2e6b
BLAKE2b-256 f85c3b340bc40cf7bc418ace3c55556bf6a7d3f365e44b540ebd48d5d5cc3c4b

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4bd37abcc3855c3ba536b48e89635e84a3fc3a187f9b7033df69a239110109e
MD5 232dbee0582f6d83df56dd47b1b0e13a
BLAKE2b-256 3209dc37aa5452754aa08bffe4825495982d464710ad84c57da4a6ce0df27428

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22a896f4fe45ad3729caa22d841963097075a02a2e8021920a893be02f6744ef
MD5 bcb1d21f7cefefa7b8a8ccc7f3522d2d
BLAKE2b-256 40f1f3b74dbe000897eb6307d570c6f3b490c851ea0d5b8dff3e8ee6bad09832

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: saxonche-12.2.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for saxonche-12.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5a36c2fac14b4e17c18eb65e3c2f8c3a35d2a49f9ca1a376fca8b0dc25d3639f
MD5 5c6d661db1a5668251232e07d0491f54
BLAKE2b-256 80743dc87c424f610f0e9c6b611eb116a34f60bcc2072d12c31a4a9d38d36350

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e7e29bc797548c6dea152994e92028d3105a9104208d56c6a3c8e5bdf108ee63
MD5 77a0fd4e5ee7544bf0b5907f87ffc99b
BLAKE2b-256 b6f98caa623c37c915b2b07e405b135ac3a6539a3bf514656c37b6c624ae866e

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 797412a68c8fe093d9c832dface4ca26e9f46aed6b749276b56d635f617686ab
MD5 a326b701403709b4c1e38e2f8074f054
BLAKE2b-256 11655f8ab32140bff48f51d2dc79fb6692ee0b329f7c6649438f17d28b9ac685

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cec80c53e0b97a8c476ac690c9aa47f5a25a9d881a16517b53989db57754356
MD5 5b51fc4f4a44d51b22a92f9f6495b59c
BLAKE2b-256 9f842f90140bf32550fc9111701ec9f2c35c711acc3e21b4bd2d0758fe8c8479

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0ef0573259cada4b188dbff5236079346f95d7aed9a466cbe41e3b1a676d0c24
MD5 a953e6ef8b349ef547bba9c083cd3168
BLAKE2b-256 e7df415f766f3687f144adcbcf019d05a9c9dcc54d2fce5c3a1b4f7b729ef361

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: saxonche-12.2.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for saxonche-12.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c8eb745dedc16fa24bc03d004f91b33f099c8b263f20b10e19c6cc308b5b7954
MD5 619fafe72080c627d757c26f74d6b9c5
BLAKE2b-256 b0250cb66676604f08ee256e77a111a69c001fda2bc017857a76d7ed8ccc8966

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f317c3b4d6e7dd51a5275914cb21736317eb1fadf9101e5d8bf58efabbdb05b9
MD5 16f547da97420e508b5d0ea9d6340956
BLAKE2b-256 d72b448e956d0413531c139954751955c9b7979932a41ed99ad0b7c7e7662f51

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 185a22923b9db3f877979b36efbd6ae07b6c8d5fa197501c21c7bfbd74e93956
MD5 b4c23fa7d30c99497a787b9bcad1457c
BLAKE2b-256 64ab5ffeb871e4ec51206e1208906d14051c3324aa5fb50701ed054c243b4adb

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44eb67837508d286e57c902217599fcbe3121d55f2dc9f0ba057e89d0c7e9589
MD5 c6d7066ce9f4ab4b047de4e2ff783476
BLAKE2b-256 e60899bba2455ccbaa62a547c585c0d3ac7812145e06ba41cc95209f772f64ce

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad0cb4dfd7f08383bbc4ed7b0397d546acfe46ff4e51e4b6c213ea5fc83f11d2
MD5 cee7f5505f5b3995c06c55b3cb0ccba9
BLAKE2b-256 304250dd56509a5de6308dbfe31528a616cf707e1f6948338b0525be7b870465

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: saxonche-12.2.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for saxonche-12.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f5556446802c51b6c690d0fa06c8e7a40e67532c9882fbc6ebb6b0b35c949471
MD5 0d4d940bd99e712b45d48a9c6c0a97cf
BLAKE2b-256 7b100fa43128bf232bda3413a5ad60bafcdb7f54e94c18c0fb39b7ab30a8fed2

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9334d48341ab683b1fbaf4fdfcc7ddc299b2546e616ccd7adb58ffa469c98ccb
MD5 5bf819197432466f84315686eb149688
BLAKE2b-256 0baea356248c2c00eca0f56d902e4cc8e9d5f733ce19d5a6abbbd0d41af6f45c

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c94874840ef9eea3cbed968c3bd754f841346e1c2501f27e48e4c7c8bfb4eb12
MD5 e35b4db17fdca97d1b4e493bc309b028
BLAKE2b-256 28c150bb6d368ba7dbb4d81a3402366776b8ff0f265e6bf404d01b279a4e4b39

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1748030dde6f951fb357d75c589410eed53d4e4dac96c2dd22adeb0cbea4e776
MD5 12af694bb4cb8856c03a7ad3cf7902b9
BLAKE2b-256 0c33a12fd8ba69ff401880d046e1341bfe6e1eeb7655bf335dddead787cc38e9

See more details on using hashes here.

File details

Details for the file saxonche-12.2.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for saxonche-12.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e47c6158de64d7746138810ab7ad3631b7a62ad3eef1c51cc643dfd744b2465
MD5 55ae4d2df82da9b42ac23fd67ad051a2
BLAKE2b-256 784df7f05ae4dc08f10baed97463cd1db8a89620f145df8e83028b37a847ea1b

See more details on using hashes here.

Supported by

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