Skip to main content

Streamlit RockyRoad Tools

Project description

Streamlit Rocky Road Tools

A collection of custom Streamlit components and tools.

Components

st_notification_banner

A customizable notification bar component for Streamlit applications.

Features:

  • Displays notification messages with optional "Learn more" links
  • HTML message support - Rich text with tags like <strong>, <em>, <p>, etc.
  • Persistent dismissal using localStorage
  • Customizable styling with black background and styled buttons
  • React + TypeScript implementation
  • Full width layout within Streamlit constraints

Installation:

pip install streamlit-rockyroad-tools

Usage:

import streamlit as st
from streamlit_rockyroad_tools import st_notification_banner

# Basic usage
st_notification_banner(
    message="This is a notification from our sponsors.",
    learn_more="https://example.com",
    key="my_notification"
)

# HTML message support
st_notification_banner(
    message="<p>Our new&nbsp;<strong>Widgets Incentive Program</strong>&nbsp;has launched!</p>",
    learn_more="https://example.com/parts",
    key="html_notification"
)

# Without Learn More button (learn_more is optional)
st_notification_banner(
    message="<p>Simple notification without a Learn More button.</p>",
    key="simple_notification"
)

Development

Each component has its own frontend directory with React/TypeScript source code.

To develop the notification bar:

cd st_notification_banner/frontend
npm install
npm start

Then run your Streamlit app in another terminal:

streamlit run st_notification_banner/my_notification_banner_example.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

streamlit_rockyroad_tools-0.0.25-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_rockyroad_tools-0.0.25-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_rockyroad_tools-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 996b4c25b5d854e196d411745a905d6a06a5f3e20fc09c9cc44fabe5e1b4396a
MD5 cee30f1fb45ce6454cb077910ad0b14d
BLAKE2b-256 291cabfbe7164e59f43aea170585e1fea1c73037e8ac8e10d79dda1fcc1ede41

See more details on using hashes here.

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