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.
Release files for streamlit-editable-list 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit_editable_list-0.0.4.tar.gz | 455.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_editable_list-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 914.4 kB
Release files / streamlit_editable_list-0.0.4.tar.gz
| Download URL | streamlit_editable_list-0.0.4.tar.gz |
|---|---|
| Size | 455.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67c5a1991ff553f9661b68d86811f1a5f6fe4957ca7ea4ae32e450786cd86c5f
|
|
BLAKE2b-256 checksum How to use checksums |
757f103d2a0036395873e91b9a66b42efa71eaee05a6ee0e99bf6dd629537d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / streamlit_editable_list-0.0.4-py3-none-any.whl
| Download URL | streamlit_editable_list-0.0.4-py3-none-any.whl |
|---|---|
| Size | 459.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e47b7604f90ef6acbbe14bb33a07ab6d8264a78ec763ce144fd6b3c70b71211f
|
|
BLAKE2b-256 checksum How to use checksums |
f580bd23767162c4266c268eab00e4706902e4688d0b4ba3faeed80755c8ac56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|