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 package started life as a maintained and updated fork of tree-sitter-languages by Grant Jenks, and it incorporates code contributed by ObserverOfTime (see this PR).
- This package is MIT licensed and the original package of which this is a fork has an Apache 2.0 License. Both licenses are available in the LICENSE file.
- All languages bundled by this package are licensed under permissive open-source licenses (MIT, Apache 2.0 etc.) only - no GPL licensed languages are included.
- 165+ Languages: Support for all major programming languages and many domain-specific languages
- Pre-built Wheels: Easy installation with no compilation required
- Type-Safe: Full typing support for better IDE integration and code safety
- Zero GPL Dependencies: All bundled languages use permissive licenses (MIT, Apache 2.0, etc.)
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.
- actionscript - MIT License
- ada - MIT License
- agda - MIT License
- apex - MIT License
- arduino - MIT License
- asm - MIT License
- astro - MIT License
- bash - MIT License
- beancount - MIT License
- bibtex - MIT License
- bicep - MIT License
- bitbake - MIT License
- c - MIT License
- cairo - MIT License
- capnp - MIT License
- chatito - MIT License
- clarity - MIT License
- clojure - CC0 1.0 Universal License
- cmake - MIT License
- comment - MIT License
- commonlisp - MIT License
- cpon - MIT License
- cpp - MIT License
- csharp - MIT License
- css - MIT License
- csv - MIT License
- cuda - MIT License
- d - MIT License
- dart - MIT License
- dockerfile - MIT License
- doxygen - MIT License
- dtd - MIT License
- elisp - MIT License
- elixir - MIT License
- elm - MIT License
- embeddedtemplate - MIT License
- erlang - MIT License
- fennel - MIT License
- firrtl - Apache License 2.0
- fish - Unlicense license
- fortran - MIT License
- fsharp/fsharp_signature - MIT License
- func - MIT License
- gdscript - MIT License
- gitattributes - MIT License
- gitcommit - WTFPL License
- gitignore - MIT License
- gleam - Apache-2.0 license
- glsl - MIT License
- gn - MIT License
- go - MIT License
- gomod - MIT License
- gosum - MIT License
- graphql - MIT License
- groovy - MIT License
- gstlaunch - MIT License
- hack - MIT License
- hare - MIT License
- haskell - MIT License
- haxe - MIT License
- hcl - Apache License 2.0
- heex - MIT License
- hlsl - MIT License
- html - MIT License
- hyprlang - MIT License
- ispc - MIT License
- ini - Apache License 2.0
- janet - BSD-3-Clause license
- java - MIT License
- javascript - MIT License
- jsdoc - MIT License
- json - MIT License
- jsonnet - MIT License
- julia - MIT License
- kconfig - MIT License
- kdl - MIT License
- kotlin - MIT License
- latex - MIT License
- linkerscript - MIT License
- llvm - MIT License
- lua - MIT License
- luadoc - MIT License
- luap - MIT License
- luau - MIT License
- magik - MIT License
- make - MIT License
- markdown - MIT License
- markdown_inline - MIT License
- matlab - MIT License
- mermaid - MIT License
- meson - MIT License
- netlinx - MIT License
- nim - MPL-2.0 License
- ninja - MIT License
- nix - MIT License
- nqc - MIT License
- objc - MIT License
- ocaml/ocaml_interface - MIT License
- odin - MIT License
- org - MIT License
- pascal - MIT License
- pem - MIT License
- perl - Artistic License 2.0
- pgn - BSD-2-Clause license
- php - MIT License
- po - MIT License
- pony - MIT License
- powershell - MIT License
- printf - ISC License
- prisma - MIT License
- properties - MIT License
- proto - MIT License
- psv - MIT License
- puppet - MIT License
- purescript - MIT License
- pymanifest - MIT License
- python - MIT License
- qmldir - MIT License
- qmljs - MIT License
- query - Apache License 2.0
- r - MIT License
- racket - MIT License
- rbs - MIT License
- re2c - MIT License
- readline - MIT License
- rego - MIT License
- requirements - MIT License
- ron - Apache License 2.0
- rst - MIT License
- ruby - MIT License
- rust - MIT License
- scala - MIT License
- scheme - MIT License
- scss - MIT License
- slang - MIT License
- smali - MIT License
- smithy - MIT License
- solidity - MIT License
- sparql - MIT License
- sql - MIT License
- squirrel - MIT License
- starlark - MIT License
- svelte - MIT License
- swift - MIT License
- tablegen - MIT License
- tcl - MIT License
- test - MIT License
- thrift - MIT License
- toml - MIT License
- tsv - MIT License
- tsx - MIT License
- twig - WTFPL License
- typescript - MIT License
- typst - MIT License
- udev - MIT License
- ungrammar - MIT License
- uxntal - MIT License
- v - MIT License
- verilog - MIT License
- vhdl - MIT License
- vim - MIT License
- vue - MIT License
- wgsl - MIT License
- xcompose - MIT License
- xml - MIT License
- yaml - MIT License
- yuck - MIT License
- zig - MIT License
We welcome contributions! Please see our Contributing Guide for details on:
- Setting up your development environment
- Adding new languages
- Running tests
- Submitting pull requests
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.