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.6.tar.gz (454.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_editable_list-0.0.6-py3-none-any.whl (459.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_editable_list-0.0.6.tar.gz
  • Upload date:
  • Size: 454.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for streamlit_editable_list-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f50b82ddb50aece02b75ebf796ed1d13603f8ede4f563cb24367d19f77bbd1ed
MD5 a295751700d4ab8d7b26d079374e0dc1
BLAKE2b-256 782fe692defdd248f5efbfca419beeab3698b606aeaf1ecf73f4717d2073ff93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_editable_list-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca0f3832ef4d85e933a10e3119f3fef8c5b0439bea5e6a0fe8a58392adfeb18
MD5 fa3523d0613989e248f4a5a4798ce2ad
BLAKE2b-256 1dce5cf7447ce21c01b132bc9066587c8e4f5de4bfd1f6e534a295aabbf2ea61

See more details on using hashes here.

Supported by

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