devicetree
Python libraries for devicetree
What it is and what it does
Devicetree is a Python library for working with devicetree files, which are hardware configuration descriptions commonly used in embedded systems and the Zephyr RTOS project. It depends only on PyYAML for serialization support, making it lightweight to install. The library provides tools to parse, read, and manipulate devicetree data structures.
However, the package is in abandoned status—the repository was archived and has received no commits since 2022-10-10. It remains available on PyPI and downloads regularly, but new users should be aware that no maintenance, bug fixes, or compatibility updates are forthcoming. It may not work correctly with current versions of Zephyr or modern Python toolchains.
Use it for:
- Parse devicetree files for Zephyr RTOS projects that are locked to older versions and do not require ongoing updates
- Analyze or extract hardware configuration data from devicetree sources in embedded systems development workflows
- Integrate devicetree handling into legacy Zephyr-based applications that predate the package's abandonment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python libraries for parsing and working with devicetree files, primarily for use with the Zephyr RTOS project.
No, not for new projects. While the package has low install friction and a permissive license, it is abandoned and has not been maintained since 2022-10-10. For active Zephyr development, use the devicetree support built into current Zephyr releases or check for officially maintained alternatives. Install only if you are maintaining legacy code that explicitly depends on this package version.
Install
devicetree on PyPI
pip
pip install devicetreeuv
uv add devicetreepoetry
poetry add devicetreeInstalling devicetree
Before you install
The package has low install friction with only PyYAML as a runtime dependency. However, the repository is archived and abandoned since 2022-10-10, with no maintenance activity since then. Installation carries the risk of receiving no updates or security fixes going forward.
License in practice
Licensed under the Apache License (permissive), which allows broad use, modification, and distribution with minimal restrictions. This is favorable for most use cases but does not guarantee ongoing maintenance or support.
Quickstart
pip install devicetree
import devicetree
# Parse or manipulate devicetree objects using the library's API
Requires Python 3.6 or later. The package is archived and may not work with current Zephyr versions or modern Python environments.
Verify before relying
- Whether this package is actively maintained or supported by the Zephyr project through alternative channels despite repository archival
- Current compatibility with modern Zephyr RTOS versions and whether the 0.0.2 release remains functional for production use
- Whether alternative or successor devicetree libraries are recommended for new projects
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — PyYAML |
| Maintenance | abandoned — 1,570 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 167,253/month — #10,473 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: devicetree-0.0.2-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pydevicetreeParses, queries, and modifies Devicetree Source…
permissive · top 15,000 on PyPI
zephyr-python-apiProvides Python wrappers for the Zephyr Scale…
permissive · top 15,000 on PyPI
westWest is a meta-tool for managing multiple Git…
permissive · top 5,000 on PyPI
pyftdiPyFtdi provides a pure-Python user-space driver…
permissive · top 15,000 on PyPI
Adafruit-PlatformDetectDetects the chip and board type of single-board…
permissive · top 15,000 on PyPI
zigpyzigpy is a hardware-independent Zigbee protocol…
copyleft · top 15,000 on PyPI
lambdalibLambdalib provides technology-agnostic hardware…
permissive · top 15,000 on PyPI
phidget22Phidget22 is the official Python library for…
permissive · top 15,000 on PyPI
device-detectorParses user agent strings and client hints to…
unclear · top 15,000 on PyPI
bellowsbellows is a Python library that implements the…
copyleft · top 15,000 on PyPI