Skip to main content

fancy-streamlit

A lightweight Python package for adding a simple timer component to Streamlit apps.

Features

  • Start, stop, and track elapsed time
  • Optional reverse countdown mode
  • Simple Streamlit UI integration
  • Easy to use from Python code

Installation

Install from PyPI:

pip install fancy-streamlit

Quick Start

import streamlit as st
from fancy_streamlit import StreamlitTimer

st.title("Timer Example")

timer = StreamlitTimer()

if st.button("Start Timer"):
    timer.start()

if st.button("Start Reverse Countdown"):
    timer.start(reverse=True, end=10)

timer.render_ui(label="Elapsed")

API

StreamlitTimer

timer = StreamlitTimer()

Methods

  • start(reverse=False, end=None): Start or reset the timer.
  • get_time(): Return the current elapsed or remaining time.
  • is_done(): Check whether a countdown has completed.
  • render_ui(label="Stopwatch"): Render the timer in a Streamlit app.

License

This project is licensed under the Apache Version 2.0 License. See the LICENSE file for details.

Download files

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

Source Distribution

fancy_streamlit-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

fancy_streamlit-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fancy_streamlit-0.1.0.tar.gz.

File metadata

  • Download URL: fancy_streamlit-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fancy_streamlit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 147275a247bb28cbb5d127a504ed177a9380996315e92cd230f34aa949c345a9
MD5 df00613612eb37b2cc6f082135752ea5
BLAKE2b-256 29808917efed220368db2b7996e3d074b3346d74604a945fcf1c529f0c22cacc

See more details on using hashes here.

Provenance

The following attestation bundles were made for fancy_streamlit-0.1.0.tar.gz:

Publisher: publish.yml on Bhumgara/fancy_streamlit

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

File details

Details for the file fancy_streamlit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fancy_streamlit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22b3197c579fff5d7fb911206c2e3bf118ca7efb84507c579f831b576f8df853
MD5 0e9909f436c136e341e2cdf4fc31f2ab
BLAKE2b-256 5720f6364188b0730ab0e23d587273183c1181f4efdcb7d8c7efbcae28ca225d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fancy_streamlit-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Bhumgara/fancy_streamlit

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