Streamlit component for creating tree views
Project description
streamlit-arborist
streamlit-arborist is a Streamlit component based on react-arborist for visualizing hierarchical data structures as interactive tree views.
- Demo application: st-arborist-example.streamlit.app
- Documentation: streamlit-arborist.readthedocs.io
Installation
pip install streamlit-arborist
Basic usage
A minimal app.py file with sample data:
from streamlit_arborist import tree_view
data = [
{
"id": "1",
"name": "Parent 1",
"children": [
{"id": "1.1", "name": "Child 1"},
{"id": "1.2", "name": "Child 2"}
]
},
{
"id": "2",
"name": "Parent 2",
"children": [
{"id": "2.1", "name": "Child 3"},
{"id": "2.2", "name": "Child 4"}
]
}
]
tree_view(data)
Run Streamlit:
streamlit run app.py
Development
This repository is based on streamlit/component-template template. Find details about custom components in Streamlit documentation.
The development environment requires uv and Node.js + npm installed.
Setup
Install the dev Python environment defined in pyproject.toml
and npm packages in streamlit_arborist/frontend:
make setup
Running
While developing the frontend, set _RELEASE = False in __init__.py.
-
Run the app/example.py app file with Streamlit:
make backend -
Start the component's frontend server:
make frontend
Open the app running at http://localhost:8501.
Build
Set _RELEASE = True in __init__.py and run:
make build
Documentation
The documentation files are located in docs/ directory and written with Sphinx.
make docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_arborist-0.2.1.tar.gz.
File metadata
- Download URL: streamlit_arborist-0.2.1.tar.gz
- Upload date:
- Size: 12.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c271a303492f3c9132200c6756096d7f05198b4963667589930d126558eacb4
|
|
| MD5 |
70debdf653e5039f00d8790ef0bc0fcc
|
|
| BLAKE2b-256 |
7a2d9ffc12d9ea585249d3c764f71b3c6a02d33d106bde97fad9d31a982fae5a
|
Provenance
The following attestation bundles were made for streamlit_arborist-0.2.1.tar.gz:
Publisher:
test-build-release.yaml on gabriel-msilva/streamlit-arborist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_arborist-0.2.1.tar.gz -
Subject digest:
3c271a303492f3c9132200c6756096d7f05198b4963667589930d126558eacb4 - Sigstore transparency entry: 428048090
- Sigstore integration time:
-
Permalink:
gabriel-msilva/streamlit-arborist@9805e3836f237fa9142feb6ba361f0d9394069a2 -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/gabriel-msilva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-build-release.yaml@9805e3836f237fa9142feb6ba361f0d9394069a2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file streamlit_arborist-0.2.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_arborist-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5931412a702a61e095ccce00b2094e322ded14592bed63ed32d6b121bb1a586b
|
|
| MD5 |
6fb539a811746a786db0acd8ff21bed7
|
|
| BLAKE2b-256 |
ab9e209f256249bc63de04a75d40f74c33420cd79ae253ed65c8bdd30d587db4
|
Provenance
The following attestation bundles were made for streamlit_arborist-0.2.1-py3-none-any.whl:
Publisher:
test-build-release.yaml on gabriel-msilva/streamlit-arborist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_arborist-0.2.1-py3-none-any.whl -
Subject digest:
5931412a702a61e095ccce00b2094e322ded14592bed63ed32d6b121bb1a586b - Sigstore transparency entry: 428048102
- Sigstore integration time:
-
Permalink:
gabriel-msilva/streamlit-arborist@9805e3836f237fa9142feb6ba361f0d9394069a2 -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/gabriel-msilva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-build-release.yaml@9805e3836f237fa9142feb6ba361f0d9394069a2 -
Trigger Event:
push
-
Statement type: