Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: not ready

Streamlit TOON Viewer

A custom Streamlit component for viewing TOON (Tree Object Oriented Notation) data in an interactive, collapsible tree view.

Requirements

  • Python >= 3.12
  • Streamlit >= 1.51.0

Installation

Install the package using pip:

pip install streamlit-toon

Usage

Basic Usage

import streamlit as st
from streamlit_toon import StreamlitTOONViewer

# Create a viewer instance
viewer = StreamlitTOONViewer()

# Display TOON data from a string
toon_data = """
root:
  child1: value1
  child2: value2
"""
viewer.display_toon(toon_data)

Display TOON Data from a File

import streamlit as st
from streamlit_toon import StreamlitTOONViewer

viewer = StreamlitTOONViewer()

# Pass a file path directly
viewer.display_toon("path/to/your/toon_file.toon")

Custom Height and Key

import streamlit as st
from streamlit_toon import StreamlitTOONViewer

viewer = StreamlitTOONViewer()

# Customize the viewer height and add a unique key
viewer.display_toon(
    data="your_toon_data_here",
    height=600,
    key="my_toon_viewer"
)

API Reference

StreamlitTOONViewer()

Creates a new TOON viewer instance.

display_toon(data, height=400, key=None)

Display TOON data in an interactive tree view.

Parameters:

  • data (str): TOON text as a string, or file path to a TOON file
  • height (int, optional): Height of the component in pixels (default: 400)
  • key (str, optional): Unique key for the component

Returns:

  • Component return value

License

[Add your license here]

Metadata

Release files for streamlit_toon 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit_toon 0.1.0
File Size Uploaded Provenance
streamlit_toon-0.1.0.tar.gz 8.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit_toon 0.1.0
File Interpreter ABI Platform
streamlit_toon-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / streamlit_toon-0.1.0.tar.gz

Download URL streamlit_toon-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fa8f29894a0b08eefa85b83e7e73f9b749ef4fe08b547e3a62564608ce85c2b3
BLAKE2b-256 checksum
How to use checksums
02d18511e3043ccc5ba925949955d7865beb4f9e4f6d3c36caba04f16ca06bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Release files / streamlit_toon-0.1.0-py3-none-any.whl

Download URL streamlit_toon-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cf243627230f5925f3ffc953118c4341918108125419e8f0b92df8bfb0baecc
BLAKE2b-256 checksum
How to use checksums
ffe5b18b9286fe35656d1223f59ee89497835006df2a985f40b640997fa16768
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Security for streamlit_toon 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page