skillfed

devicetree

Python libraries for devicetree

devicetree v0.0.2 167.3K downloads/30d#10,473 on PyPI16
Permissive license Abandoned released

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 devicetree

uv

uv add devicetree

poetry

poetry add devicetree

Installing 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

License :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: Only

Tags

devicetree parsing pythonzephyr devicetree librarydevice tree configurationembedded systems device treepython devicetree toolshardware description parsingrtos device configuration
embedded-systemsabandoned

More Software Development packages