Components for labelling text document
Project description
# streamlit-text-label
Custom streamlit component for labelling text selections.
![Screenshot](assets/screenshot.png)
## Usage
Prerequisite:
- python >= 3.6, <= 3.8
```python
from streamlit_text_label import tooltip_select
selected_text, selected_label = tooltip_select(body="lorem ipsum", labels=["Noun", "Verb"])
```
More details in [example](example/app.py) directory.
## Develop
```bash
docker-compose up --build
```
Or manually, start the frontend
```bash
cd streamlit_text_label/frontend
npm install
npm run start
```
Followed by the example app
```bash
pip install -r example/requirements.txt
RELEASE=DEV streamlit run example/app.py
```
## Publish
```bash
cd component/frontend
npm run build
cd ../..
python setup.py sdist bdist_wheel
```
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_text_label-0.0.1.tar.gz
(526.2 kB
view details)
Built Distribution
File details
Details for the file streamlit_text_label-0.0.1.tar.gz
.
File metadata
- Download URL: streamlit_text_label-0.0.1.tar.gz
- Upload date:
- Size: 526.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab55275e7214d7c931b43d48787f81b1a613c6af7c5873ae032e7bbdc45fde7d |
|
MD5 | aa6665eb7d2d2631651011f103c6d5e8 |
|
BLAKE2b-256 | 2c23cb759d359f75f914475b0218ac51c35e36d060a584eaf130b14c49b0d806 |
File details
Details for the file streamlit_text_label-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: streamlit_text_label-0.0.1-py3-none-any.whl
- Upload date:
- Size: 536.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a83ce355274a61cfd0820cd34a891d031b1a2b06ec314a55fdeee3b769a150 |
|
MD5 | b2b1f3f063055224f0935f30e01e4cd0 |
|
BLAKE2b-256 | 820e904d4903c44d30d6c77fa873805016f006fdcd13243bf78d3ef1668d70ea |