tree-sitter-nextflow
Nextflow grammar for tree-sitter. Mirrors the official Nextflow ANTLR grammar.
Installation
Install the Python binding and tree-sitter runtime from PyPI after the first release:
pip install "tree-sitter-nextflow[core]"
Use the grammar in Python tools:
from tree_sitter import Language, Parser
import tree_sitter_nextflow
parser = Parser(Language(tree_sitter_nextflow.language()))
tree = parser.parse(b'workflow {\n println "Hello"\n}\n')
assert not tree.root_node.has_error
The parser produces a syntax tree for your lint rules. It does not run Nextflow's semantic checks. Python 3.10 or later is required. Releases provide wheels for Linux and macOS on x86-64 and ARM64, plus a source distribution for platforms with a C compiler.
To build the Python, Rust, or C binding from source:
git clone https://github.com/nextflow-io/tree-sitter-nextflow.git
- Python:
pip install . - Rust: add a path or git dependency on this repo in
Cargo.toml. - C:
makebuilds the shared library.
See editor and tool integrations for the query files and the requirements for Bash highlighting inside process scripts.
ast-grep
The repo includes an ast-grep setup for searching, linting, and outlining Nextflow code by syntax tree:
ast-grep -l nextflow -p 'Channel.from($$$)' .
See docs/ast-grep/ for setup, the bundled lint rules, and the pattern library.
Metadata
Release files for tree-sitter-nextflow 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_nextflow-0.4.1.tar.gz | 173.2 kB | With provenance | Details for tree_sitter_nextflow-0.4.1.tar.gz |
Built distributions (wheels)
Total release size: 689.8 kB
Release files / tree_sitter_nextflow-0.4.1.tar.gz
| Download URL | tree_sitter_nextflow-0.4.1.tar.gz |
|---|---|
| Size | 173.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d79c92f3a80cdceedc0d3e55673ae4b6dcf37b54e6b39d516a1a51036a6f5d7
|
|
BLAKE2b-256 checksum How to use checksums |
c8311a48ee7db98f163df16178ba6430a52504456d748d7c0e5f20003f8b3779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 90.0 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3203c81a820557e527efbefa9bd0eb9f30b06ba334f55e3f4f312264d2103c91
|
|
BLAKE2b-256 checksum How to use checksums |
8888aeba43649b40b1d0c735b9729c73cba80343eee8f263f58d1ecc1935652a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 90.3 kB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f27e90e74369b3e23f14b7bf52264b8fe208e7666e1663d1764782a3961d6c05
|
|
BLAKE2b-256 checksum How to use checksums |
b9b0c3c02b363703843c63442d9cb41ac94013ad4160787b3eb24767815bc171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 91.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
88d0444ca062ec5fcc574231c0213bce10513935137d2125cc421ce6b186dbed
|
|
BLAKE2b-256 checksum How to use checksums |
60243397bf8de931d4b3a255126c0cde5aac2600cf8bb12b7f8f9fe432fb15c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 90.0 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e211d1a9755677794c305cbbde27444a435f818fc37dd5c80ff39547edaa7ab5
|
|
BLAKE2b-256 checksum How to use checksums |
6fc480e11f2c2e36ed4ed67d64ab0d0a4e2f8197cc187174f33e927f13d39743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 80.1 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
acdfa7022d73d56f0062c25bc5e93bff4727873207545e0c1b2381108363d3bf
|
|
BLAKE2b-256 checksum How to use checksums |
7f2020f3986a3052e1fbd621f47784c848fa2493838495e0c16daab0d58b4eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / tree_sitter_nextflow-0.4.1-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_nextflow-0.4.1-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 75.2 kB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
921b6ba0095a829c4827569bd6f1a4f1784f1647a5e262682b56f7f911177c0f
|
|
BLAKE2b-256 checksum How to use checksums |
0c7555b4682018e5af456e88ebd52ce233f7f25e2b0955bcdd0da181943ef409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for tree-sitter-nextflow 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for tree_sitter_nextflow-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.