streamlit_autocomplete
A simple Python package for adding autocomplete functionality to a Streamlit app’s st.text_area, using streamlit-textcomplete.
Features
- Fast, case‑insensitive autocomplete as you type
- Works with any list of strings (cities, stock names, etc.)
- Clean, minimal API for Streamlit
Installation
pip install streamlit-autocomplete
Note:
streamlitandstreamlit-textcompleteare installed automatically as dependencies.
Usage
import streamlit as st
from streamlit_autocomplete import st_textcomplete_autocomplete
# Autocomplete options
city_names = [
"New York", "London", "Paris", "Berlin", "Tokyo", "Mumbai",
# ...more
]
query = st_textcomplete_autocomplete(
label="Enter city or metric",
options=city_names,
key="city_autocomplete",
help="Start typing a city name"
)
st.write("You typed:", query)
API
| Parameter | Type | Description |
|---|---|---|
| label | str | Label for the text area |
| options | list | List of strings for autocomplete |
| key | str | Streamlit key (use different keys for multiple fields) |
| placeholder | str | Placeholder text (optional) |
| height | int | Text area height (optional, default 120) |
| help | str | Help tooltip (optional) |
| max_count | int | Maximum suggestions to display (default 10) |
Returns: str – the current typed/autocompleted string.
License
MIT License
Credits
Metadata
Release files for streamlit-autocomplete 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit_autocomplete-0.1.0.tar.gz | 2.9 kB | Without provenance | Details for streamlit_autocomplete-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_autocomplete-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for streamlit_autocomplete-0.1.0-py3-none-any.whl |
Total release size: 6.3 kB
Release files / streamlit_autocomplete-0.1.0.tar.gz
| Download URL | streamlit_autocomplete-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef432e770e63febfff24de189189cfccd80198ac2ba0f7659592bc756182c3a8
|
|
BLAKE2b-256 checksum How to use checksums |
85612573cb7b66fbeb703dd2a8980ae2467291e6007662b5413517358486bc85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / streamlit_autocomplete-0.1.0-py3-none-any.whl
| Download URL | streamlit_autocomplete-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
518ebcf4c71f8be265cf12d032de9744598e67af67a8af68bc1ef386b14adc70
|
|
BLAKE2b-256 checksum How to use checksums |
a9ef391e35f8931bdd74cff038ce2c1e5443ebbcd8aee9297f4d4354f8c44d70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for streamlit-autocomplete 0.1.0
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.