
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.