Datalist element for Streamlit
Project description
Streamlit Datalist
This component brings datalists to Streamlit. Contrary to regular selectboxes, where the user is contrained to the options in the dropdown list, datalists can receive values that weren't available.
To install this component, run the following command:
pip install streamlit-datalist
Importing and using the package can be done as follows:
from streamlit_datalist import stDatalist
my_selection = stDatalist("This datalist is...", ["great", "cool", "neat"])
The component takes the following parameters:
-
label: string
A name to display on top of the component. -
options: list
List of options to display in the dropdown. -
index: int (optional, default None)
Index of the list element to be displayed as a default value. Defaults to None. -
key: int, str (optional, default None)
Component's key. Required when multiple datalists will be used in the Streamlit app.
v0.0.5
Changes:v0.0.4a0
Changes:v0.0.3
Changes:v0.0.2
Changes:v0.0.1
Initial release of the componentProject 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
File details
Details for the file streamlit_datalist-0.0.5.tar.gz
.
File metadata
- Download URL: streamlit_datalist-0.0.5.tar.gz
- Upload date:
- Size: 499.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281b6042e3cc1cb74fa16993754ce60dcf40ee702d076aecac682cff7f8e08fa |
|
MD5 | f0c870705625303c6101d6201acbea9e |
|
BLAKE2b-256 | 4e18d25be35c1be8566d55c723dfd6d5a745d3eeb14f9c70cfe1f20798ec29af |
File details
Details for the file streamlit_datalist-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: streamlit_datalist-0.0.5-py3-none-any.whl
- Upload date:
- Size: 975.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40b135b41e7482816ca2dc06ac534ed840b0e1dff21af8a54cb800646a400e58 |
|
MD5 | 5e1ade55d5f87aa04d87c700f8373d4c |
|
BLAKE2b-256 | 48ff5e59c9e69c0a198f99b366dee3fe0690c7b73e901810f796499dc00633ae |