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.0-py3-none-win_arm64.whl (10.2 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

semble_grammars-0.1.0-py3-none-macosx_15_0_x86_64.whl (6.7 MB view details)

Uploaded Python 3macOS 15.0+ x86-64

semble_grammars-0.1.0-py3-none-macosx_15_0_arm64.whl (7.2 MB view details)

Uploaded Python 3macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 adfc28f38728fa2afdf2184ad11cd6b39a62d14cac45980394aacc5c9ba842e2
MD5 c4159b436908d63ea7bc325a0847b03a
BLAKE2b-256 889514ac0baaef8a46061c0ccfc4829b8d8133449f546cca9213003bd10d6598

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-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.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d80f9b1554885ccd23f9d825c30ae224a922900a998d232eed20ba086354fe8e
MD5 3479fdd5090483de0fa1089f5d0e6732
BLAKE2b-256 79b4ce6e445ef1889ab2a1c4a8293444f1f7f5dd0144f57d10cfe98ebf3f94a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-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.0-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac0208897f84d6658eec5443a2a68923fc6e42a592e43e8805b217e0f8932f82
MD5 82e3e6d2bcb23ce182395cf9bff9a5d3
BLAKE2b-256 e7513734501f7ed5943dfec6075c013171e844d3bc45e7e683fba7fc5a64f6a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-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.0-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d88dfe37a3719e03f77ff641fcb4768b513b89b04cc77f30e623f97e232a7936
MD5 3561058ffb86f9ca4ca401937129159e
BLAKE2b-256 8eb9f991880e9c39207111883c34791f28c6d183b8246180d679a0baf0ae5f8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-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.0-py3-none-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 6b0a59e2263dc8d4a4944bc5cbace3a28b905d96be541bf66234400be581c514
MD5 a1511e2d06964b8184b0b081960347b5
BLAKE2b-256 56430a116a27d47e878c30f2e1394af44bbbd4662cef2e2b9a71cc139085c59e

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-py3-none-macosx_15_0_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.0-py3-none-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for semble_grammars-0.1.0-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ac619f16dfb23c5c295cbdf175f0e1012eb5ecf5b32b064808f44f6242296b2b
MD5 fe178e5b75bf3f6ba58caf7bc8bc4e1e
BLAKE2b-256 01f732a2da546a612f2bd2d5ae5e93ef78d769c80dbad5a5c04729b663169a08

See more details on using hashes here.

Provenance

The following attestation bundles were made for semble_grammars-0.1.0-py3-none-macosx_15_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.

Supported by

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