Install & Compatibility
Where this runs
tested against v0.10.3.post1 · 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 · 31.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.0s · import 0.000s · 33MB
30MB installed
● package 30MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
rdflib_shim
✓ from pyshexc import rdflib_shim
✗ from pyshexc.parser import compile_shex
shimin
✓ from pyshexc import shimin
✗ from pyshexc.parser import compile_shex
Compile a ShEx schema string into a Python object using compile_shex.
from pyshexc.parser import compile_shex
shex_schema = """
PREFIX ex: <http://example.org/>
ex:User IRI {
ex:name xsd:string ;
ex:email xsd:string
}
"""
try:
compiled = compile_shex(shex_schema)
print("Schema compiled successfully")
print(type(compiled))
except Exception as e:
print(f"Compilation error: {e}")
shex --version
Upgrade
Version history
0.10.3.post1latest on PyPI · released May 1, 2026
Audit
Dependencies
antlr4-python3-runtimerequiredruntime dep for ANTLR grammar parsing