xarray-treeview
PyQt/PySide tree model/view interface for an Xarray DataTree.
Install
Requires a PyQt package. Should work with PySide6, PyQt6, or PyQt5.
pip install PySide6
Install latest release version:
pip install xarray-treeview
Or install latest development version:
pip install xarray-treeview@git+https://github.com/marcel-goldschen-ohm/xarray-treeview
Quick Start
from qtpy.QtWidgets import QApplication
from xarray_treeview import *
app = QApplication()
# Xarray DataTree
dt: DataTree = ...
# XarrayTreeModel: without drag-n-drop
# XarrayDndTreeModel: with drag-n-drop (move within tree only)
model = XarrayDndTreeModel()
model.setDataTree(dt)
# XarrayTreeViewer includes XarrayTreeView plus info and attrs views
# but you can use XarrayTreeView standalone too.
viewer = XarrayTreeViewer()
view: XarrayTreeView = viewer.view()
view.setModel(model)
viewer.show()
app.exec()
Documentation
:construction:
Metadata
Release files for xarray-treeview 2025.4.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xarray_treeview-2025.4.9.2.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xarray_treeview-2025.4.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.6 kB
Release files / xarray_treeview-2025.4.9.2.tar.gz
| Download URL | xarray_treeview-2025.4.9.2.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb519ff69dce432c89016c2d01ca8629665c2cd0dd77447383ba08c78de52abc
|
|
BLAKE2b-256 checksum How to use checksums |
118042ed7b05f9211f432f548e743bbe81c272e418a10a7ad31357b5dcf47b78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.23.1 CPython/3.13.2 Darwin/23.6.0
|
Release files / xarray_treeview-2025.4.9.2-py3-none-any.whl
| Download URL | xarray_treeview-2025.4.9.2-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f93d0660c848fa906ca9aef02b7823b89b4351704a50459c4106c3a864756e0
|
|
BLAKE2b-256 checksum How to use checksums |
0fc8ae31be34458ddc35e12f3fb6481dd8e10d3776718a2dfc3ea604b5cd40dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.23.1 CPython/3.13.2 Darwin/23.6.0
|