skillfed

tree-sitter-bash

Bash grammar for tree-sitter

tree-sitter-bash Permissive license MIT AGING 325 v0.25.1 released

Install

tree-sitter-bash on PyPI

pip

pip install tree-sitter-bash

uv

uv add tree-sitter-bash

poetry

poetry add tree-sitter-bash

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance aging — 254 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: tree_sitter_bash-0.25.1-cp310-abi3-macosx_10_9_x86_64.whl; tree_sitter_bash-0.25.1-cp310-abi3-macosx_11_0_arm64.whl; tree_sitter_bash-0.25.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; tree_sitter_bash-0.25.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; tree_sitter_bash-0.25.1-cp310-abi3-musllinux_1_2_aarch64.whl; tree_sitter_bash-0.25.1-cp310-abi3-musllinux_1_2_x86_64.whl; tree_sitter_bash-0.25.1-cp310-abi3-win_amd64.whl; tree_sitter_bash-0.25.1-cp310-abi3-win_arm64.whl

Keywords: incremental, parsing, tree-sitter, bash

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseTopic :: Software Development :: CompilersTopic :: Text Processing :: LinguisticTyping :: Typed

About tree-sitter-bash

from the package's own PyPI description — quoted content, verbatim

tree-sitter-bash

CI (image) discord (image) matrix (image) ![crates][crates] ![npm][npm] ![pypi][pypi]

Bash grammar for tree-sitter.

Development

Install the dependencies:

npm install

Build and run the tests:

npm run build
npm run test

Run the build and tests in watch mode:

npm run test:watch
References

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Provides a tree-sitter grammar for parsing Bash shell scripts, enabling incremental syntax analysis and AST generation for Bash code.

Medium install friction due to precompiled wheels across major platforms (macOS, Linux, Windows, ARM64), but the package is aging—last release was 254 days ago and maintenance status is marked aging, so updates may lag.

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Usage

pip install tree-sitter-bash
import tree_sitter_bash

Requires Python >=3.10.

Verdict: A permissively licensed Bash grammar binding with good platform coverage via precompiled wheels and no known vulnerabilities. However, the aging maintenance status (254 days since last release) and lack of explicit runtime dependencies in the metadata warrant verification of actual usage requirements before installation.

Needs verification

  • What runtime dependencies tree-sitter-bash actually requires to function
  • Whether the 254-day release gap reflects stable maturity or stalled maintenance
  • Minimal working example of how to use tree-sitter-bash in practice
bash parser tree-sittershell script parsingbash syntax treeincremental bash parsingbash grammar parsertree-sitter language binding

Similar packages