Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 46.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.0s · import 0.000s · 47MB
45MB installed
● package 45MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SignatureContext
✓ from xmlsig import SignatureContext
✗ from xmlsig import XMLSig
Basic signing and verification of an XML document.
from xmlsig import XMLSig, constants
from lxml import etree
# Load XML to sign
doc = etree.fromstring(b'<root><data>secret</data></root>')
# Create XMLSig instance (using a dummy key for demo)
sig = XMLSig(doc, sign_key_path='/path/to/private.pem', cert_path='/path/to/cert.pem')
sig.sign()
# Verify signature
sig2 = XMLSig(doc)
verified = sig2.verify()
print('Signature verified:', verified)
Upgrade
Version history
1.0.1latest on PyPI · released May 10, 2023
Audit
Dependencies
signxmloptionalxmlsig is a wrapper around signxml for XML signature operations
lxmloptionalUsed for XML parsing and manipulation