Skip to main content

tree-sitter-devicetree

Devicetree grammar for tree-sitter. The grammar is directly ported from the Device Tree Compiler (dtc).

It also has (limited) support for the C preprocessor grammar. The goal here is to be able to parse all Devicetree Source files in the Linux kernel source tree. The test script can be used to verify this:

tree-sitter generate
./test/parse.sh /path/to/linux/

Copyright (C) 2026 Waqar Hameed and the tree-sitter-devictree contributors.

Metadata

Release files for tree-sitter-devicetree2 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tree-sitter-devicetree2 0.1.0
File Size Uploaded Provenance Actions
tree_sitter_devicetree2-0.1.0.tar.gz 80.5 kB Without provenance Details for tree_sitter_devicetree2-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-devicetree2 0.1.0
File Interpreter ABI Platform Actions
tree_sitter_devicetree2-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for tree_sitter_devicetree2-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
tree_sitter_devicetree2-0.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 abi3 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for tree_sitter_devicetree2-0.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Total release size: 212.8 kB

Release files / tree_sitter_devicetree2-0.1.0.tar.gz

Download URL tree_sitter_devicetree2-0.1.0.tar.gz
Size 80.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a6635db84b829dd05518296b05ab6c3eb232a8fb1708b4c7b00c7c8703e60a4d
BLAKE2b-256 checksum
How to use checksums
90c34927703a9afc0e861d84cf0f56df4a8fdd68dd156a437cac51e3a0eac478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tree_sitter_devicetree2-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_devicetree2-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 66.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
18ff1bb2b1066ff19a0a351c15d521b5eafea2a8cc7a9baabc03e17a745e9135
BLAKE2b-256 checksum
How to use checksums
aef328f3f6bc1ed7da544480218dde8a8394e6efedde025c525ba2d71e79fff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tree_sitter_devicetree2-0.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_devicetree2-0.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 66.2 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
8f3636a9d52ab3bf5961d4e6578c2f33afba7c718a86360f961f22ce5613ecef
BLAKE2b-256 checksum
How to use checksums
5155068ed75d35235b35ee61bb2f5a387e706b32105457e2f19b67fc701b0114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for tree-sitter-devicetree2 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page