Skip to main content

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

streamlit_editable_list-0.0.4.tar.gz (455.1 kB view details)

Uploaded Source

Built Distribution

streamlit_editable_list-0.0.4-py3-none-any.whl (459.3 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_editable_list-0.0.4.tar.gz.

File metadata

File hashes

Hashes for streamlit_editable_list-0.0.4.tar.gz
Algorithm Hash digest
SHA256 67c5a1991ff553f9661b68d86811f1a5f6fe4957ca7ea4ae32e450786cd86c5f
MD5 5a0d9cc06c65a5804e78036fa99bdbaa
BLAKE2b-256 757f103d2a0036395873e91b9a66b42efa71eaee05a6ee0e99bf6dd629537d26

See more details on using hashes here.

File details

Details for the file streamlit_editable_list-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_editable_list-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e47b7604f90ef6acbbe14bb33a07ab6d8264a78ec763ce144fd6b3c70b71211f
MD5 6ddd04f168e809f56fa0ad467ccedde0
BLAKE2b-256 f580bd23767162c4266c268eab00e4706902e4688d0b4ba3faeed80755c8ac56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page