Skip to main content

PyQt/PySide model/view for tree of Xarray datasets.

Project description

xarray-treeview

PyQt/PySide tree model/view interface for an Xarray DataTree.

GitHub Tag build-test GitHub Release publish

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xarray_treeview-2025.4.9.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xarray_treeview-2025.4.9.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file xarray_treeview-2025.4.9.2.tar.gz.

File metadata

  • Download URL: xarray_treeview-2025.4.9.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.23.1 CPython/3.13.2 Darwin/23.6.0

File hashes

Hashes for xarray_treeview-2025.4.9.2.tar.gz
Algorithm Hash digest
SHA256 bb519ff69dce432c89016c2d01ca8629665c2cd0dd77447383ba08c78de52abc
MD5 98d76662e160ac3e2f3bf0dffa074a10
BLAKE2b-256 118042ed7b05f9211f432f548e743bbe81c272e418a10a7ad31357b5dcf47b78

See more details on using hashes here.

File details

Details for the file xarray_treeview-2025.4.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xarray_treeview-2025.4.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f93d0660c848fa906ca9aef02b7823b89b4351704a50459c4106c3a864756e0
MD5 749c4fdb3bba17871113fe9f04246f76
BLAKE2b-256 0fc8ae31be34458ddc35e12f3fb6481dd8e10d3776718a2dfc3ea604b5cd40dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page