A Streamlit component that adds a modern time picker using MUI X TimePicker. Supports AM/PM and 24-hour formats, time range limits, and input validation.
Project description
st-time-entry
A Streamlit component that adds a modern time picker using MUI X TimePicker. Supports AM/PM and 24-hour formats, time range limits, and input validation.
Features
- Modern Material UI (MUI X) TimePicker in Streamlit
- AM/PM and 24-hour support
- Set default time and restrict selectable time range
- Disable input as needed
- Returns time as a string (e.g.,
"09:30 am")
Installation
pip install st-time-entry
Usage
import streamlit as st
from st_time_entry import st_time_entry
# Basic usage
selected_time = st_time_entry(
"Pick a start time",
key="time_entry_1",
)
st.write("Selected time:", selected_time)
Development
- Frontend: React + TypeScript + MUI X Date Pickers
- Backend: Python (Streamlit custom component)
License
This project is licensed under the GNU General Public License v3.0.
Acknowledgements
Based on streamlit/component-template.
Project 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 st_time_entry-0.4.0.tar.gz.
File metadata
- Download URL: st_time_entry-0.4.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad47ace4e20c99ae80657589b065e4dbcc91bc012ffd4aaf3a77052ed6250315
|
|
| MD5 |
24cf84d6e31b5abbd8d7b1b22a910baa
|
|
| BLAKE2b-256 |
6078188820ef84fe315d7b18d94ed334db3b2b9ad8a7e23d4884bf16df990a62
|
Provenance
The following attestation bundles were made for st_time_entry-0.4.0.tar.gz:
Publisher:
publish.yml on lperezmo/st-time-entry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
st_time_entry-0.4.0.tar.gz -
Subject digest:
ad47ace4e20c99ae80657589b065e4dbcc91bc012ffd4aaf3a77052ed6250315 - Sigstore transparency entry: 592554387
- Sigstore integration time:
-
Permalink:
lperezmo/st-time-entry@0be4edc8cefb0cd7ad3ada1b600d22bbb4f8331f -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/lperezmo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0be4edc8cefb0cd7ad3ada1b600d22bbb4f8331f -
Trigger Event:
push
-
Statement type:
File details
Details for the file st_time_entry-0.4.0-py3-none-any.whl.
File metadata
- Download URL: st_time_entry-0.4.0-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f14f7a829e6904d79fce68da8c329df46f9880e60291e90205e44b1bfec315
|
|
| MD5 |
86dfcde77ef87c1a31265f22665c6b20
|
|
| BLAKE2b-256 |
d890818a1b9983e3bc84b307ff44eff08f83d7a4407136f2ccc52e07f47a553f
|
Provenance
The following attestation bundles were made for st_time_entry-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on lperezmo/st-time-entry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
st_time_entry-0.4.0-py3-none-any.whl -
Subject digest:
97f14f7a829e6904d79fce68da8c329df46f9880e60291e90205e44b1bfec315 - Sigstore transparency entry: 592554391
- Sigstore integration time:
-
Permalink:
lperezmo/st-time-entry@0be4edc8cefb0cd7ad3ada1b600d22bbb4f8331f -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/lperezmo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0be4edc8cefb0cd7ad3ada1b600d22bbb4f8331f -
Trigger Event:
push
-
Statement type: