MCPcopy Index your code
hub / github.com/arnaudmiribel/streamlit-extras

github.com/arnaudmiribel/streamlit-extras @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
429 symbols 1,663 edges 98 files 203 documented · 47%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PyPI version

🪢 streamlit-extras

A Python library with useful Streamlit extras

streamlit-extras is a Python library putting together useful Streamlit bits of code (extras).

CleanShot 2023-10-18 at 14 56 43

Highlights

  • 📙  Discover: Visit our documentation to discover all extras.
  • ⬇️  Install: streamlit-extras is a PyPI package with all extras included. Get them all using pip!
  • 🫴  Share: Go ahead and share your own extras, it's just a PR away!

Getting Started

Installation

pip install streamlit-extras

Or with uv:

uv add streamlit-extras

Usage

Here's an example with one of the easiest extras around, stoggle

from streamlit_extras.stoggle import stoggle

stoggle(
    "Click me!",
    """🥷 Surprise! Here's some additional content""",
)

Development

This project uses uv for dependency management.

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and setup
git clone https://github.com/arnaudmiribel/streamlit-extras.git
cd streamlit-extras
uv sync

# Run tests
uv run pytest

# Run the gallery
uv run streamlit run gallery/streamlit_app.py

Documentation

Visit https://arnaudmiribel.github.io/streamlit-extras

Contribution

PRs are welcome! Guidelines here

README template taken from LukasMasuch/streamlit-pydantic

Extension points exported contracts — how you extend this code

TreeData (Interface)
(no doc)
src/streamlit_extras/directory_tree/frontend/src/DirectoryTree.tsx
Window (Interface)
(no doc)
src/streamlit_extras/image_compare_slider/frontend/src/ImageCompareSlider.tsx
Window (Interface)
(no doc)
src/streamlit_extras/three_viewer/frontend/src/urlUtils.ts
ChartJSChartDataShape (Interface)
(no doc)
src/streamlit_extras/chartjs_chart/frontend/src/ChartJSChart.tsx
ChartJSChartProps (Interface)
(no doc)
src/streamlit_extras/chartjs_chart/frontend/src/ChartJSChart.tsx

Core symbols most depended-on inside this repo

get
called by 112
src/streamlit_extras/local_storage_manager/__init__.py
set
called by 17
src/streamlit_extras/steps/__init__.py
avatar
called by 15
src/streamlit_extras/avatar/__init__.py
next
called by 13
src/streamlit_extras/steps/__init__.py
directory_tree
called by 12
src/streamlit_extras/directory_tree/__init__.py
delete
called by 11
src/streamlit_extras/cookie_manager/__init__.py
_get_file_extension
called by 10
src/streamlit_extras/three_viewer/__init__.py
is_empty
called by 9
src/streamlit_extras/function_explorer/__init__.py

Shape

Function 359
Method 44
Class 16
Interface 6
Route 4

Languages

Python82%
TypeScript18%

Modules by API surface

src/streamlit_extras/local_storage_manager/__init__.py21 symbols
src/streamlit_extras/cookie_manager/__init__.py20 symbols
src/streamlit_extras/steps/__init__.py18 symbols
src/streamlit_extras/capture/__init__.py17 symbols
src/streamlit_extras/sigma_graph/__init__.py14 symbols
src/streamlit_extras/three_viewer/__init__.py11 symbols
src/streamlit_extras/tags/__init__.py10 symbols
src/streamlit_extras/stateful_chat/__init__.py10 symbols
src/streamlit_extras/image_crop/__init__.py10 symbols
src/streamlit_extras/specialized_inputs/__init__.py9 symbols
src/streamlit_extras/resizable_columns/frontend/src/ResizableColumns.tsx8 symbols
src/streamlit_extras/image_crop/frontend/src/ImageCrop.tsx8 symbols

For agents

$ claude mcp add streamlit-extras \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page