Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
streamlit-date-picker
Readme
streamlit-date-picker
is a date picker designed for use with Streamlit. It allows users to easily select a range of dates and times.
Install the package using the following command:
pip install streamlit-date-picker
import streamlit as st
from streamlit_date_picker import date_range_picker, PickerType, Unit, date_picker
st.title('Streamlit Date Picker')
# Use date_range_picker to create a datetime range picker
st.subheader('Date Range Picker')
date_range_string = date_range_picker(picker_type=PickerType.time.string_value,
start=-30, end=0, unit=Unit.minutes.string_value,
key='range_picker',
refresh_button={'is_show': True, 'button_name': 'Refresh last 30min',
'refresh_date': -30,
'unit': Unit.minutes.string_value})
if date_range_string is not None:
start_datetime = date_range_string[0]
end_datetime = date_range_string[1]
st.write(f"Date Range Picker [{start_datetime}, {end_datetime}]")
st.subheader('Date Picker')
# Use date_picker to create a date picker
date_string = date_picker(picker_type=PickerType.time.string_value, value=0, unit=Unit.days.string_value,
key='date_picker')
if date_string is not None:
st.write('Date Picker: ', date_string)
picker_type
: Default picker type, type: str, options: time, date, week, month, quarter, year.start
: Default start time, type: int, default value: -30.end
: Default end time, type: int, default value: 0.unit
: Default time unit, type: str, options: milliseconds, seconds, minutes, hours, days, weeks, months, years.key
: Picker key, default value: None.refresh_button
: Refresh button configuration, type: {'is_show': bool, 'button_name': str, 'refresh_date': int, 'unit': str}, default values: False, 'Refresh last 30min', -30 and minutes. When the button is clicked, it refreshes the selected time range.picker_type
: Default picker type, type: str, options: time, date, week, month, quarter, year.value
: Default value, type: int, default value: 0.unit
: Default time unit, type: str, options: milliseconds, seconds, minutes, hours, days, weeks, months, years.key
: Picker key, default value: None.This project is licensed under the MIT License. See the LICENSE file for more details.
FAQs
this is date picker for streamlit
We found that streamlit-date-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.