Survey components for Streamlit apps
Project description
Streamlit-Survey: Survey components for Streamlit apps
Streamlit-Survey is a Python package for incorporating surveys and structured feedback into Streamlit apps.
It can be used with Trubrics to collect feedback on datasets, models, and machine learning apps.
Installation
Streamlit-Survey can be installed from Github:
pip install git+https://github.com/OlivierBinette/streamlit-survey.git
Example
Simple paged survey example with a conditional structure and a submit button:
Usage
The streamlit_survey package contains a StreamlitSurvey class that can be used to create and manage survey components:
import streamlit_survey as ss survey = ss.StreamlitSurvey()
Components can be added to the survey using functions similar to Streamlit’s input functions:
Features
Survey components are similar to Streamlit inputs, but they have additional features that make them suitable for surveys:
Questions and responses are automatically saved.
Component states and previous responses are automatically restored and displayed based on survey data.
Survey can be saved to and loaded from JSON files.
Custom survey components can be created for more complex input UI and functionality.
Read the docs:
License
Apache 2.0
History
0.1.0 (2023-03-23)
First release.
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
Hashes for streamlit_survey-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614f4c24e18dbf6d2eec78a62f62d65a77ee798910209f6f16370f8ceb6ac0e6 |
|
MD5 | a6929228fed0e24539d98f6f0cf2bf33 |
|
BLAKE2b-256 | d3c2ed64e6d9f7ed7321bdcea46619e1f612da0259e754084e768f51275c1373 |