{"library":"pyshexc","title":"PyShExC - Python ShEx Compiler","description":"PyShExC compiles Shape Expressions (ShEx) schemas into Python executable shapes. Version 0.9.1 supports ShEx 2.1 grammar, requires Python >=3.7, and is released irregularly.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pyshexc"],"cli":{"name":"shex","version":"sh: 1: shex: not found"}},"imports":["from pyshexc.parser import compile_shex","from pyshexc.parser import ShExCVisitor"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pyshexc.parser import compile_shex\n\nshex_schema = \"\"\"\nPREFIX ex: <http://example.org/>\nex:User IRI {\n  ex:name xsd:string ;\n  ex:email xsd:string\n}\n\"\"\"\n\ntry:\n    compiled = compile_shex(shex_schema)\n    print(\"Schema compiled successfully\")\n    print(type(compiled))\nexcept Exception as e:\n    print(f\"Compilation error: {e}\")","lang":"python","description":"Compile a ShEx schema string into a Python object using compile_shex.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}