Skip to main content

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

st_time_entry-0.4.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

st_time_entry-0.4.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

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

Hashes for st_time_entry-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ad47ace4e20c99ae80657589b065e4dbcc91bc012ffd4aaf3a77052ed6250315
MD5 24cf84d6e31b5abbd8d7b1b22a910baa
BLAKE2b-256 6078188820ef84fe315d7b18d94ed334db3b2b9ad8a7e23d4884bf16df990a62

See more details on using hashes here.

Provenance

The following attestation bundles were made for st_time_entry-0.4.0.tar.gz:

Publisher: publish.yml on lperezmo/st-time-entry

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

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

Hashes for st_time_entry-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97f14f7a829e6904d79fce68da8c329df46f9880e60291e90205e44b1bfec315
MD5 86dfcde77ef87c1a31265f22665c6b20
BLAKE2b-256 d890818a1b9983e3bc84b307ff44eff08f83d7a4407136f2ccc52e07f47a553f

See more details on using hashes here.

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

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