Skip to main content

semble-grammars

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.

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 (75)

The canonical names accepted by get_parser() are:

asciidoc, astro, bash, c, clojure, cmake, cpp, csharp, css, dart, dockerfile, dtd, elixir, embedded_template, erlang, fortran, gitignore, go, gotmpl, graphql, groovy, haskell, hcl, 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, and terraform is an alias for hcl.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

semble_grammars-0.1.1-py3-none-win_arm64.whl (10.2 MB view details)

Uploaded Python 3Windows ARM64

semble_grammars-0.1.1-py3-none-win_amd64.whl (10.9 MB view details)

Uploaded Python 3Windows x86-64

semble_grammars-0.1.1-py3-none-macosx_11_0_arm64.whl (7.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

semble_grammars-0.1.1-py3-none-macosx_10_13_x86_64.whl (6.7 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file semble_grammars-0.1.1-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 f531a506201d37e5c259d731daeb3993a010ea5a75aec1e77f5123d4c6291dd0
MD5 6a38548052c43200aecff00dc3757311
BLAKE2b-256 9a5f21d3667867e8850bb66669b7b0859e9ffca7def1dae6e6d44678ba894c21

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-win_arm64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semble_grammars-0.1.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f6c87996a48f775e751622681b5897f3742e4b78923a5a33fa160c1d54fb2fe0
MD5 f29fcf667d9d0dd2e4c8fa4417785ed2
BLAKE2b-256 cec0d826d9d9e437f06f687200a8713a23d3c23e9f0c131f048f7b2c151ee2d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-win_amd64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semble_grammars-0.1.1-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7578041b0b4fec0945f7827fb80ac085355260980c0cdf5dc84cee293233018c
MD5 991700c14fd1c1c0f9971f798175dd96
BLAKE2b-256 daf465e6679578ce292ff3d90f8eb130ec42ab7a3ad4a44c3434261b128d48f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-manylinux2014_x86_64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semble_grammars-0.1.1-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b5fd263376c8e94d49d2b388524ff3b958b67b6c6aa5213e530b4a268c389373
MD5 50f65b9ca0f7a865fa246cd26a4e713a
BLAKE2b-256 eb40445668e22dbfdfb98b527dad042f8bf1917a50640c52c46ce187b52b24db

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-manylinux2014_aarch64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semble_grammars-0.1.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 741f3fc6247a78ce5e613e93acb1d32909b824e9555e13a21a7ce7b3b29b7549
MD5 479967efff2da3c90b2c9eeab576b641
BLAKE2b-256 a951e5bfedd3bec0efa49755e6439c4e1ae7ca557f389820e9b7e833eeee1b79

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semble_grammars-0.1.1-py3-none-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 dbdccf538b40eda05e16942daff1fe5b87084470fefc53b3d1347727056d72ee
MD5 fb45d607888a74b2f4b73f45bba1cb31
BLAKE2b-256 7e9d7438889743c69fcfe2fe8a213f61cab3ab7282d22a9244d06ff840efd6ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.1-py3-none-macosx_10_13_x86_64.whl:

Publisher: release.yaml on MinishLab/semble-grammars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page