Metadata-Version: 2.1
Name: streamlit-editable-list
Version: 0.0.2
Summary: A Streamlit component to edit a list of items.
Home-page: https://gitlab.com/groups/dcsm
License: GPL-3.0-or-later
Author: Son Pham-Ba
Author-email: son.phamba@epfl.ch
Requires-Python: >=3.9.12,<3.13
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: streamlit (>=1.17.0,<2.0.0)
Project-URL: Repository, https://gitlab.com/dcsm/streamlit-editable-list
Description-Content-Type: text/markdown

# streamlit-editable-list

A Streamlit component to edit a list of entries, made of several inputs.


## Installation instructions

```sh
pip install streamlit-editable-list
```

## Usage instructions

```python
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)
```

