this is datetime range picker for skynet website
Project description
Streamlit DateTime Range Picker
Project Introduction
streamlit-datetime-range-picker
is a datetime range picker designed for use with Streamlit. It allows users to easily select a range of dates and times.
Installation
Install the package using the following command:
pip install streamlit-datetime-range-picker
Usage
import streamlit as st
from streamlit_datetime_range_picker import datetime_range_picker
# Use datetime_range_picker to create a datetime range picker
datetime_string = datetime_range_picker(start=-30, end=0, unit='minutes', key='range_picker',
picker_button={'is_show': True, 'button_name': 'Refresh last 30min'})
if datetime_string is not None:
start_datetime = datetime_string[0]
end_datetime = datetime_string[1]
Parameter
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.picker_button
: Refresh button configuration, type: {'is_show': bool, 'button_name': str}, default values: False and 'Refresh last 30min'. When the button is clicked, it refreshes the selected time range.- The return value of datetime_range_picker is of type str.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for streamlit-datetime-range-picker-0.0.1b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2298b78414c7695a612067e02bfe12287679096ec46f24dc4fffd8d135753e77 |
|
MD5 | 1c72af065491214687541ccf76e7790d |
|
BLAKE2b-256 | ff9b3fcc91d38cad8a4c2550ee69c62f9c2d8722366b9e1b4728a49d83fcd298 |
Close
Hashes for streamlit_datetime_range_picker-0.0.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4190266ec275b7085bedb952b097c07c36337a873553fe8ffe3261065e2dac1d |
|
MD5 | 5b1a9ee916370aea2ab6388db849be11 |
|
BLAKE2b-256 | ed1dacc4cdbc9ef8081d5e73e98675f9f01f7c6c2325b9e06ce3934492101fba |