@plurnk/plurnk-mimetypes-grammar-python
v1.0.8
Published
Pre-built tree-sitter-python WASM grammar for @plurnk/plurnk-mimetypes. Install this package to enable Python (text/x-python) support in plurnk-service.
Readme
@plurnk/plurnk-mimetypes-grammar-python
Pre-built tree-sitter-python WASM grammar for the @plurnk/plurnk-mimetypes framework.
install
npm i @plurnk/plurnk-mimetypes-grammar-pythonwhat's in here
python.wasm— pre-built from the pinned upstream tree-sitter-python commit (recorded in.grammar-pin)scripts/build-wasm.mjs— reproducible build from the pinned sourcescripts/verify-wasm.mjs— CI check that the committed WASM matches a fresh rebuild byte-for-byte
There is no runtime code here. The framework's TreeSitterLanguageHandler resolves the WASM via import.meta.resolve("@plurnk/plurnk-mimetypes-grammar-python/python.wasm") and loads it through web-tree-sitter.
Declares only web-tree-sitter as a peer — no native tree-sitter, no node-gyp.
license
MIT. The bundled python.wasm is built from the upstream tree-sitter-python grammar, which is MIT-licensed; see the pinned commit for that project's attribution.
