Skip to main content

A Shiny for Python extension providing a treeview component

Project description

Shiny TreeView

A TreeView UI component for Shiny for Python, backed by Material UI.

Installation

pip install shiny-treeview

To install the latest development version:

pip install git+https://github.com/davidchall/shiny-treeview.git#egg=shiny_treeview

Quick Start

Try this quick start live and explore more examples here.

from shiny.express import input, render
from shiny_treeview import input_treeview, TreeItem

tree_data = [
    TreeItem(
        "docs",
        "📁 Documents",
        children=[
            TreeItem("report", "📄 Report.pdf"),
            TreeItem("slides", "📄 Slides.pptx"),
        ]
    ),
    TreeItem("readme", "ℹ️ README.md")
]

input_treeview("my_tree", tree_data)

@render.text
def value():
    return f"Selected: {input.my_tree()}"

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

shiny_treeview-0.1.1.tar.gz (561.1 kB view details)

Uploaded Source

Built Distribution

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

shiny_treeview-0.1.1-py3-none-any.whl (316.4 kB view details)

Uploaded Python 3

File details

Details for the file shiny_treeview-0.1.1.tar.gz.

File metadata

  • Download URL: shiny_treeview-0.1.1.tar.gz
  • Upload date:
  • Size: 561.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shiny_treeview-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b2686bbc95703cb829d7f8b5dd7760caf1c1b299705ed3330dfd2ae410ee61b
MD5 9bc7ab4509e84a03fc827188b9052f9e
BLAKE2b-256 cb43bb6a5e2e0fa7315939dc6b6a1075f16bac993ec6914377da5bd758d6e9a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for shiny_treeview-0.1.1.tar.gz:

Publisher: ci-cd.yml on davidchall/shiny-treeview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shiny_treeview-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: shiny_treeview-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 316.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shiny_treeview-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f52146f2d78edb7e17bee7ac5041d6bc993cbba2882d0d617940698bc8c7bc1
MD5 4a12264f64836bc9f95f32ee11a32ee3
BLAKE2b-256 d239dfe56982da1dfe810fde2588503d26ca7e604a3370953a473c8ae81e6951

See more details on using hashes here.

Provenance

The following attestation bundles were made for shiny_treeview-0.1.1-py3-none-any.whl:

Publisher: ci-cd.yml on davidchall/shiny-treeview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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