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
'''
:param label: (Str) Label of the Function
:param text: (Str) Instructions for entry
:param value: (List) Initial Value
:param key: (Str)
An optional string to use as the unique key for the widget.
Assign a key so the component is not remount every time the script is rerun.
:return: (List) Tags
'''
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)
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(549.9 kB
view hashes)
Built Distribution
streamlit_tags-1.0.3-py3-none-any.whl
(557.3 kB
view hashes)
Close
Hashes for streamlit_tags-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5cbd635e9f9d2189ce381ab6fa088a132d8b4474297910788e132c90a1dbca |
|
MD5 | 31e7b46cd47b6cfb83eca441fff1f5c0 |
|
BLAKE2b-256 | 8bd59957fb3fd66c944c6e0b95ed5b49b6e672d161dea64189e2ecca78eae54c |