semble-grammars
Prebuilt tree-sitter grammars for Semble
Compiled tree-sitter grammars for Semble.
The package installs a platform-specific grammar archive and extracts individual libraries to a local cache on first use. It does not access the network at runtime.
Installation
pip install semble-grammars
Usage
from semble_grammars import get_parser
parser = get_parser("python")
tree = parser.parse(b"def hello(): pass")
available_languages() lists the bundled languages. The package supports
macOS arm64 and x86-64, Linux arm64 and x86-64, and Windows arm64 and x86-64.
Included grammars (77)
The canonical names accepted by get_parser() are:
asciidoc, astro, bash, batch, c, clojure, cmake, cpp,
csharp, css, dart, dockerfile, dtd, elixir, embedded_template,
erlang, fortran, gitignore, go, gotmpl, graphql, groovy,
haskell, hcl, heex, html, ini, java, javascript, jinja2,
json, json5, jsonc, jsonnet, julia, just, kdl, kotlin,
latex, lua, make, markdown, markdown_inline, nix, objc,
ocaml, org, perl, php, php_only, powershell, properties,
proto, python, r, racket, rst, ruby, rust, scala, scheme,
scss, solidity, sql, starlark, svelte, swift, toml, tsx,
typescript, typst, vim, vue, wat, xml, yaml, zig.
py is an alias for python, terraform is an alias for hcl,
embeddedtemplate is an alias for embedded_template, and zsh is an alias
for bash.
The MIT license above covers semble-grammars' own code. Each bundled grammar is a
separate upstream work with its own license; see
THIRD_PARTY_NOTICES.md for the
full list.
Building from source
Build grammars from the pinned sources in
sources.json:
uv run python scripts/build_grammars.py # current platform
uv run python scripts/build_grammars.py --windows # Windows via mingw-w64
uv run python scripts/build_grammars.py --all # current, Linux, and Windows
This requires a C compiler, Git, and the tree-sitter CLI (npm install -g tree-sitter-cli@0.26.11). Linux cross-builds also require Docker. Build the available
platform archives into wheels with:
uv run python scripts/build_wheels.py
Metadata
Release files for semble-grammars 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| semble_grammars-0.1.2-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| semble_grammars-0.1.2-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| semble_grammars-0.1.2-py3-none-manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| semble_grammars-0.1.2-py3-none-manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| semble_grammars-0.1.2-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| semble_grammars-0.1.2-py3-none-macosx_10_13_x86_64.whl | Python 3 | none | macOS 10.13+ x86-64 | Details |
Total release size: 49.2 MB
Release files / semble_grammars-0.1.2-py3-none-win_arm64.whl
| Download URL | semble_grammars-0.1.2-py3-none-win_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
6bb406d0fc9594b9bfd3cad82fb538748109d6c72066c0e76ea102c64f12c4d9
|
|
BLAKE2b-256 checksum How to use checksums |
042096078011af0d3b0e5b1c1f4b8937ba6f89f7dd5edef71902e9949845e513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / semble_grammars-0.1.2-py3-none-win_amd64.whl
| Download URL | semble_grammars-0.1.2-py3-none-win_amd64.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
078ae79ad15442a2922dae46620f778fa237b191ac06e9c29832f079915d4d39
|
|
BLAKE2b-256 checksum How to use checksums |
26d03a783d2eda7e4f8f631ae1890cb87bdfaa6cb97efbc74135b66641b89dde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / semble_grammars-0.1.2-py3-none-manylinux2014_x86_64.whl
| Download URL | semble_grammars-0.1.2-py3-none-manylinux2014_x86_64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
c040595ca4e117969a349807dce05c1a51dbb368e80de80b005539fd86ef9c07
|
|
BLAKE2b-256 checksum How to use checksums |
9dd9e93eb269ccd2494cf4b5ac2f201b5badb959800bf21a2ae700d6d7f6418a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / semble_grammars-0.1.2-py3-none-manylinux2014_aarch64.whl
| Download URL | semble_grammars-0.1.2-py3-none-manylinux2014_aarch64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
f24f63a04e569f2de28aaf39166c8dddd8e296aa0390ac816df6ad1bd814e3bf
|
|
BLAKE2b-256 checksum How to use checksums |
32e2bec01f956cd7aa52505a57954f3259febd00092715eac6f0ea1fff6058e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / semble_grammars-0.1.2-py3-none-macosx_11_0_arm64.whl
| Download URL | semble_grammars-0.1.2-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
772e7011ce5e2ff5d9347a2f027a447c713d3f0d62983dd38457f04aa2215c6c
|
|
BLAKE2b-256 checksum How to use checksums |
da4285eca6563cf3794a68e6b0fd6c03d3ed39b1466e68fd14e0b25b70084c19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / semble_grammars-0.1.2-py3-none-macosx_10_13_x86_64.whl
| Download URL | semble_grammars-0.1.2-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
52fe698f1d2489e6ad3e6462c9322e77796769b203f74a294f801e5a8bd10f19
|
|
BLAKE2b-256 checksum How to use checksums |
b6bd2c0491654f9ce320faa72e6e047e07b11e696d8d737dad2a68629a294831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency log