Streamlit component that allows you to deal with capability search for geoflow app
Project description
Running in dev-mode
- Create a new Python virtual environment for the template:
$ cd template
$ python3 -m venv venv # create venv
$ . venv/bin/activate # activate venv
$ pip install streamlit # install streamlit
- Initialize and run the component template frontend:
$ cd template/my_component/frontend
$ npm install # Install npm dependencies
$ npm run start # Start the Webpack dev server
- From a separate terminal, run the template's Streamlit app:
$ cd template
$ . venv/bin/activate # activate the venv you created earlier
$ streamlit run my_component/__init__.py # run the example
streamlit-custom-component
Streamlit component that allows you to do X
Installation instructions
pip install geoflow-capability-search
Usage instructions
import streamlit as st
from my_component import my_component
value = my_component()
st.write(value)
Component receives 3 callback functions - make sure to pass it to receive the values from the component
- Search - triggers when search is being performed
- Submit - triggers when user clicks "Suggest" for capabilities
- Details - when user clicks particular capability and request for related terms and description is being fired
Puslishing
To publish component to pip
make sure to check:
- init.py that the app is pointing to the build file and not localhost
- setup.py that the version is updated
- change _RELEASE variable
- push the lates version to main
- create release in the github
- New pypi release will be created automatically
Component API
Component has 4 types of action:
- Search - triggers when search is being performed
- Submit - triggers when user clicks "Suggest" for capabilities
- Details - when user clicks particular capability and request for related terms and description is being fired
- Reset - when user resets the autocomplete value
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geoflow-capability-search-0.0.14.tar.gz.
File metadata
- Download URL: geoflow-capability-search-0.0.14.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb789d73c34b14fe89d1fdcd4e2acd87b30ad5ff6df08d363898b26021281ae0
|
|
| MD5 |
25bb73570f23091aa1755fc36bc0f85f
|
|
| BLAKE2b-256 |
8661e37a502d0891951e9d32f3fe79fa64e8a091479fe74a9a2f11a77ff7daca
|
File details
Details for the file geoflow_capability_search-0.0.14-py3-none-any.whl.
File metadata
- Download URL: geoflow_capability_search-0.0.14-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
630785441605b88cf8f2d8c9c4b3b100315ad32575723450b127b81fb917cd1e
|
|
| MD5 |
574bd9d67ee9ab4d595feebbf3cdb8da
|
|
| BLAKE2b-256 |
b283c3dea40c60d0b75b7a23878de3be69db898382402135e5afacd313efd942
|