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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
147275a247bb28cbb5d127a504ed177a9380996315e92cd230f34aa949c345a9
|
|
| MD5 |
df00613612eb37b2cc6f082135752ea5
|
|
| BLAKE2b-256 |
29808917efed220368db2b7996e3d074b3346d74604a945fcf1c529f0c22cacc
|
Provenance
The following attestation bundles were made for fancy_streamlit-0.1.0.tar.gz:
Publisher:
publish.yml on Bhumgara/fancy_streamlit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fancy_streamlit-0.1.0.tar.gz -
Subject digest:
147275a247bb28cbb5d127a504ed177a9380996315e92cd230f34aa949c345a9 - Sigstore transparency entry: 2401303334
- Sigstore integration time:
-
Permalink:
Bhumgara/fancy_streamlit@c45024d7089a1d7132b24de85995955882b6fd30 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Bhumgara
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c45024d7089a1d7132b24de85995955882b6fd30 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fancy_streamlit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fancy_streamlit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b3197c579fff5d7fb911206c2e3bf118ca7efb84507c579f831b576f8df853
|
|
| MD5 |
0e9909f436c136e341e2cdf4fc31f2ab
|
|
| BLAKE2b-256 |
5720f6364188b0730ab0e23d587273183c1181f4efdcb7d8c7efbcae28ca225d
|
Provenance
The following attestation bundles were made for fancy_streamlit-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Bhumgara/fancy_streamlit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fancy_streamlit-0.1.0-py3-none-any.whl -
Subject digest:
22b3197c579fff5d7fb911206c2e3bf118ca7efb84507c579f831b576f8df853 - Sigstore transparency entry: 2401303396
- Sigstore integration time:
-
Permalink:
Bhumgara/fancy_streamlit@c45024d7089a1d7132b24de85995955882b6fd30 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Bhumgara
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c45024d7089a1d7132b24de85995955882b6fd30 -
Trigger Event:
release
-
Statement type: