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)
For use inside a Streamlit form, the auto_save option can be set to True:
new_data = editable_list(initial_data, input_params, auto_save=True)
The Python data will be updated each time the user leaves an input field.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_editable_list-0.0.4.tar.gz.
File metadata
- Download URL: streamlit_editable_list-0.0.4.tar.gz
- Upload date:
- Size: 455.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c5a1991ff553f9661b68d86811f1a5f6fe4957ca7ea4ae32e450786cd86c5f
|
|
| MD5 |
5a0d9cc06c65a5804e78036fa99bdbaa
|
|
| BLAKE2b-256 |
757f103d2a0036395873e91b9a66b42efa71eaee05a6ee0e99bf6dd629537d26
|
File details
Details for the file streamlit_editable_list-0.0.4-py3-none-any.whl.
File metadata
- Download URL: streamlit_editable_list-0.0.4-py3-none-any.whl
- Upload date:
- Size: 459.3 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 |
e47b7604f90ef6acbbe14bb33a07ab6d8264a78ec763ce144fd6b3c70b71211f
|
|
| MD5 |
6ddd04f168e809f56fa0ad467ccedde0
|
|
| BLAKE2b-256 |
f580bd23767162c4266c268eab00e4706902e4688d0b4ba3faeed80755c8ac56
|