Skip to main content

Datalist element for Streamlit

Project description

Streamlit Datalist

This component brings datalists to Streamlit. Contrary to regular selectboxes, where the user is contrained to the options in the dropdown list, datalists can receive values that weren't available.

To install this component, run the following command:

    pip install streamlit-datalist

Importing and using the package can be done as follows:

    from streamlit_datalist import stDatalist

    my_selection = stDatalist("This datalist is...", ["great", "cool", "neat"])




The component takes the following parameters:

  • label: string
    A name to display on top of the component.

  • options: list
    List of options to display in the dropdown.

  • index: int (optional, default None)
    Index of the list element to be displayed as a default value. Defaults to None.

  • key: int, str (optional, default None)
    Component's key. Required when multiple datalists will be used in the Streamlit app.


v0.0.3

Changes:
  • Fix: Default value now refreshes when input data changes.

    v0.0.2

    Changes:
  • Added index parameter, to specify a default selection from the options list.
  • Deleting value from component will return a None value instead of blank.

    v0.0.1

    Initial release of the component
  • 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_datalist-0.0.4a0.tar.gz (499.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_datalist-0.0.4a0-py3-none-any.whl (974.9 kB view details)

    Uploaded Python 3

    File details

    Details for the file streamlit_datalist-0.0.4a0.tar.gz.

    File metadata

    • Download URL: streamlit_datalist-0.0.4a0.tar.gz
    • Upload date:
    • Size: 499.6 kB
    • Tags: Source
    • Uploaded using Trusted Publishing? No
    • Uploaded via: twine/4.0.1 CPython/3.9.1

    File hashes

    Hashes for streamlit_datalist-0.0.4a0.tar.gz
    Algorithm Hash digest
    SHA256 f07821e8748674f2e0e10d32f06da1d8daaf83be8bbfe924df35dc2f6d142d63
    MD5 8d33e6b08ffd6342913b4140df0d7b1b
    BLAKE2b-256 5fac515d72df323c93bb09e5d605e3c2de842301d12924058a43ed2dd6d16fc0

    See more details on using hashes here.

    File details

    Details for the file streamlit_datalist-0.0.4a0-py3-none-any.whl.

    File metadata

    File hashes

    Hashes for streamlit_datalist-0.0.4a0-py3-none-any.whl
    Algorithm Hash digest
    SHA256 07d8c4ddad5d86d25ab4d82bc8a1b98f7ff406cc4b433034152cdc6cb574c9c0
    MD5 af707c1346dd67f2b83b3f80dc457fe6
    BLAKE2b-256 851643a7033347f6de979386158517e260fbded664098a86425e2110609e51fc

    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