Skip to main content

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.5

Changes:
  • Fixing README and version of package.

    v0.0.4a0

    Changes:
  • Adding disabled attribute, to set the state of the widget.
  • Changed the way the widget updates. Now value will only update when clicking away of the widget, or by hitting the Enter key.

    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
  • Metadata

    Release files for streamlit-datalist 0.0.5

    For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

    Source distribution (sdist)

    Source distribution for streamlit-datalist 0.0.5
    File Size Uploaded Provenance Actions
    streamlit_datalist-0.0.5.tar.gz 499.8 kB Without provenance Details for streamlit_datalist-0.0.5.tar.gz

    Built distribution (wheel)

    Table of built distributions (wheels) for streamlit-datalist 0.0.5
    File Interpreter ABI Platform Actions
    streamlit_datalist-0.0.5-py3-none-any.whl Python 3 none any Details for streamlit_datalist-0.0.5-py3-none-any.whl

    Total release size: 1.5 MB

    Release files / streamlit_datalist-0.0.5.tar.gz

    Download URL streamlit_datalist-0.0.5.tar.gz
    Size 499.8 kB
    Tags Source
    SHA-256 checksum
    How to use checksums
    281b6042e3cc1cb74fa16993754ce60dcf40ee702d076aecac682cff7f8e08fa
    BLAKE2b-256 checksum
    How to use checksums
    4e18d25be35c1be8566d55c723dfd6d5a745d3eeb14f9c70cfe1f20798ec29af
    Upload date
    Uploaded using Trusted Publishing?
    What is trusted publishing?
    No
    Uploaded via twine/4.0.1 CPython/3.9.1

    Release files / streamlit_datalist-0.0.5-py3-none-any.whl

    Download URL streamlit_datalist-0.0.5-py3-none-any.whl
    Size 975.0 kB
    Tags Python 3
    SHA-256 checksum
    How to use checksums
    40b135b41e7482816ca2dc06ac534ed840b0e1dff21af8a54cb800646a400e58
    BLAKE2b-256 checksum
    How to use checksums
    48ff5e59c9e69c0a198f99b366dee3fe0690c7b73e901810f796499dc00633ae
    Upload date
    Uploaded using Trusted Publishing?
    What is trusted publishing?
    No
    Uploaded via twine/4.0.1 CPython/3.9.1

    Security for streamlit-datalist 0.0.5

    Provenance

    Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

    No provenance found

    None of the files in this release were uploaded with provenance metadata.

    A note on package security

    PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

    To learn more about protecting yourself from malicious actors, visit our package security documentation.

    Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page