tree-sitter-bash
Bash grammar for tree-sitter
Install
tree-sitter-bash on PyPI
pip
pip install tree-sitter-bashuv
uv add tree-sitter-bashpoetry
poetry add tree-sitter-bashPackage 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
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
Similar packages
permissive · top 1,000 on PyPI
pybind11permissive · top 1,000 on PyPI
tree-sitter-languagespermissive · top 1,000 on PyPI
fastarpermissive · top 1,000 on PyPI
tree-sitterpermissive · top 1,000 on PyPI
jupyter-builderpermissive · top 1,000 on PyPI
ast-serializepermissive · top 1,000 on PyPI
kubernetespermissive · top 1,000 on PyPI
larkpermissive · top 1,000 on PyPI
llvmlitepermissive · top 1,000 on PyPI