
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
tree-sitter-language-pack
Advanced tools
This package bundles a comprehensive collection of tree-sitter languages as both source distribution and pre-built wheels.
If you find tree-sitter-language-pack useful, please consider sponsoring the development:
Your support helps maintain and improve this package for the community! 🚀
pip install tree-sitter-language-pack
This library exposes three functions: get_binding, get_language, and get_parser.
from tree_sitter_language_pack import get_binding, get_language, get_parser
python_binding = get_binding("python") # this is a pycapsule object pointing to the C binding
python_lang = get_language("python") # this is an instance of tree_sitter.Language
python_parser = get_parser("python") # this is an instance of tree_sitter.Parser
See the list of available languages below to get the name of the language you want to use.
To work on the package locally you will need Python 3.10+ and the uv toolchain.
# Install runtime dependencies
uv sync --no-install-project
# Install the tree-sitter CLI used for code generation
npm install -g tree-sitter-cli
# Install prek hooks (Rust-based pre-commit replacement)
uv tool install prek
prek install
prek install --hook-type commit-msg
# Fetch bundled language vendors and build native extensions
uv run --no-sync scripts/clone_vendors.py
PROJECT_ROOT=. uv run setup.py build_ext --inplace
# Run the full test suite
PROJECT_ROOT=. uv run --no-sync pytest tests
# Execute all lint/format checks
prek run --all-files
Each language below is identified by the key used to retrieve it from the get_language and get_parser functions.
We welcome contributions! Please see our Contributing Guide for details on:
This project is licensed under the MIT OR Apache-2.0 license. See the LICENSE file for details.
This package started as a maintained fork of tree-sitter-languages by Grant Jenks.
FAQs
Comprehensive collection of 160+ tree-sitter language parsers
We found that tree-sitter-language-pack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.