A Streamlit component to edit a list of items.
Project description
streamlit-editable-list
A Streamlit component to edit a list of entries, made of several inputs.
Installation instructions
pip install streamlit-editable-list
Usage instructions
import streamlit as st
from streamlit_editable_list import editable_list
input_params = [
{
"type": "text",
"placeholder": "Enter text",
"value": "",
},
{
"type": "number",
"placeholder": "Enter number",
"value": 0,
},
{
"list": "countries",
"placeholder": "Select country",
"value": "",
"options": ["Switzerland", "France", "Germany"],
}
]
initial_data = [
["Hello", 1, "Switzerland"],
["World", 2, "France"],
]
new_data = editable_list(initial_data, input_params)
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
streamlit_editable_list-0.0.3.tar.gz
(454.3 kB
view details)
Built Distribution
File details
Details for the file streamlit_editable_list-0.0.3.tar.gz
.
File metadata
- Download URL: streamlit_editable_list-0.0.3.tar.gz
- Upload date:
- Size: 454.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a0392be4e10afc3c5445ed2ec9f81b5222947be1c149725a46a82b7a8e05339 |
|
MD5 | 3245f7fa4f1603039ce249bfb2d01eec |
|
BLAKE2b-256 | 2802463563191c03cceb4b6a39d03025b6baf6525c913d9a9bd9ffa945f2aaff |
File details
Details for the file streamlit_editable_list-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: streamlit_editable_list-0.0.3-py3-none-any.whl
- Upload date:
- Size: 458.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 238fc1a71fb3fb807bdf0e7c0147786b71975f69c4fa54bf5c29912b5690c92c |
|
MD5 | 53844df6d7c77e5b654212d312cd0999 |
|
BLAKE2b-256 | 1b44020aa90de4ddc9947f8fc1342af074e18c9a30d1077d947dddd40bebc7e5 |