Skip to main content

Tags custom component for Streamlit

Project description

Streamlit-tags

A custom component to have Tags in Streamlit.

Install

pip install streamlit-tags

Usage

This library has one main function to display and use tags:

  • st_tags to display the tags feature

Check the examples/ folder of the project for a more thourough quick start.

Definition

def st_tags(label: str,
            text: str,
            value: list,
            key=None) -> list

Example Usage

import streamlit as st
from streamlit_tags import st_tags

keywords = st_tags('Enter Keyword:', 'Press enter to add more', ['One', 'Two', 'Three'])

st.write(keywords)

image

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_tags-1.0.1.tar.gz (549.6 kB view hashes)

Uploaded Source

Built Distribution

streamlit_tags-1.0.1-py3-none-any.whl (557.1 kB view hashes)

Uploaded Python 3

Supported by

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