sherpa_streamlit
Kairntech Sherpa building blocks for Streamlit apps
This package contains utilities for visualizing and building interactive Kairntech Sherpa-powered apps with Streamlit. It includes various building blocks you can use in your own Streamlit app, like visualizers for named entities, text classification, and more.
Installation
You can simply pip install sherpa-streamlit.
Quickstart
The package includes building blocks that call into Streamlit and set up all the required elements for you. You can either use the individual components directly and combine them with other elements in your app, or call the visualize function to embed the whole visualizer.
Put the following example code in a file.
# streamlit_app.py
import sherpa_streamlit
default_text = "Sundar Pichai is the CEO of Google."
sherpa_streamlit.visualize(default_text)
You can then run your app with streamlit run streamlit_app.py. The app should pop up in your web browser.
Developing
Pre-requesites
You will need to install flit (for building the package) and tox (for orchestrating testing and documentation building):
python3 -m pip install flit tox
Clone the repository:
git clone https://github.com/oterrier/sherpa_streamlit
Running the test suite
You can run the full test suite against all supported versions of Python (3.8) with:
tox
Building the documentation
You can build the HTML documentation with:
tox -e docs
The built documentation is available at `docs/_build/index.html.
Metadata
Release files for sherpa-streamlit 0.4.8
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 | |
|---|---|---|---|---|
| sherpa-streamlit-0.4.8.tar.gz | 149.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sherpa_streamlit-0.4.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 282.4 kB
Release files / sherpa-streamlit-0.4.8.tar.gz
| Download URL | sherpa-streamlit-0.4.8.tar.gz |
|---|---|
| Size | 149.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d534f1ffe6ea703a27cfc9f3104362bf1190230bdaef9acc42a202942530790f
|
|
BLAKE2b-256 checksum How to use checksums |
d56423443879e349fd40c892969597a771e04346c77203b9f3eb4df2730c59c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Release files / sherpa_streamlit-0.4.8-py3-none-any.whl
| Download URL | sherpa_streamlit-0.4.8-py3-none-any.whl |
|---|---|
| Size | 133.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4588db0cd0e159fb51dbe764572d331079cd14ebcd3cd407005c20159418b1f4
|
|
BLAKE2b-256 checksum How to use checksums |
284ecf20e51c95b0af6ae8fb538c2cbefee770203770da15b534240aca9e1cad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.2
|
Security for sherpa-streamlit 0.4.8
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.