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)

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.2.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

streamlit_editable_list-0.0.2-py3-none-any.whl (14.4 kB view hashes)

Uploaded Python 3

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