Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamlit-datalist

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-datalist

Datalist element for Streamlit

  • 0.0.5
  • PyPI
  • Socket score

Maintainers
1

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


    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts

    SocketSocket SOC 2 Logo

    Product

    • Package Alerts
    • Integrations
    • Docs
    • Pricing
    • FAQ
    • Roadmap
    • Changelog

    Packages

    npm

    Stay in touch

    Get open source security insights delivered straight into your inbox.


    • Terms
    • Privacy
    • Security

    Made with ⚡️ by Socket Inc