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-2024.9.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

xarray_treeview-2024.9.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarray_treeview-2024.9.2.tar.gz
Algorithm Hash digest
SHA256 aa6c50e243110bd08f13922e011a49045a7b700788c7042d45311f4e908ab10a
MD5 e425bdfb6371409f1450a0eac306553b
BLAKE2b-256 3d3d670cd37c646271b42dc453aaa90111b10a12aac10f4c3ac2aa23220b82dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xarray_treeview-2024.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8707f31dbdefeffd996b35c6430a952f02ac0685d9c99e8ff1dd4532ed8067ad
MD5 07b6aa24f495c807f903bd56c24722a8
BLAKE2b-256 de5cf6355c618f7a9ff2aba1aea32bc74c80b32ef219cd68d19341ba0775e9ca

See more details on using hashes here.

Supported by

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