
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
tree-sitter-language-pack
Advanced tools
This package bundles a comprehensive collection of tree-sitter languages as both source distribution and pre-built wheels.
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.
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.