Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoflow-capability-search-0.0.9.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoflow_capability_search-0.0.9-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file geoflow-capability-search-0.0.9.tar.gz.

File metadata

File hashes

Hashes for geoflow-capability-search-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e96adfd83ebb0fb72e7cfde8e94beb9c7f1f6c67aa8ebdff1c1e88a8a95a6565
MD5 1ea49c84c9d829c41417fa2f20b6524c
BLAKE2b-256 300b58701a1be17f4cb9f89abcc91f6a39d4cfbb2a9dddb543def46c6c49bd2a

See more details on using hashes here.

File details

Details for the file geoflow_capability_search-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for geoflow_capability_search-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a2bfdd415075cab1bdd0b44f82a55dcc7e8ec8374383ddd9818f1652932b7d
MD5 c73021fbaa40ce8c0706e5cd6b75caf4
BLAKE2b-256 521ce018128d47b96145dfd123003c01f2a0c44000de126d02196d1ed5d2dcaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page