Skip to main content

A wrapper for Streamlit components accessable via query parameters

Project description

streamlit_query_wrapper

About

This project provides wrapper of default streamlit input widgets(checkbox, multibox, etc.).

With sharable link, you can access with exactly same setting you used.

Install

pip install streamlit-query-wrapper

Usage

import streamlit_query_wrapper as stq

stq.radio("Test", ["Hello", "world"])

stq.sharable_link() # shows st.code component with sharable URL

Result

drawing

Now you can access your page with given link. If you access your page with given URL, all settings you made will be loaded.

Components

Works with basic streamlit input components.

Supports

  • checkbox
  • radio
  • selectbox
  • multiselect
  • slider
  • text_input
  • number_input

Also works with st.sidebar. You can use either stq.sidebar.checkbox, or stq.checkbox in with st.sidebar statement.

As in original streamlit, this module uses label as default key value, and duplicate is not allowed.

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_query_wrapper-0.1.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

streamlit_query_wrapper-0.1.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_query_wrapper-0.1.3.tar.gz.

File metadata

  • Download URL: streamlit_query_wrapper-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for streamlit_query_wrapper-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b56f1a8b383dabf4273d1feb3c54b19159fa90e8097226050c546d236f590dce
MD5 c28955f94df818515be3a81c3fa8c445
BLAKE2b-256 f098c0ce8e0695c87297098404b140b0ba11f770398018e8930106136d75b6d3

See more details on using hashes here.

File details

Details for the file streamlit_query_wrapper-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_query_wrapper-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 444606710be02b541558ac7c47afaa5b88c34cd98e2edca8ef967b1636d5c083
MD5 5543710c823e2ae445ddca88b5a6824d
BLAKE2b-256 5a17617f08b70a017485fc2d9f4883fea8001bee63a9fff4436df6769e7e2270

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