Skip to main content

Survey components for Streamlit apps

Project description

Lifecycle: experimental Documentation on Streamlit

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:

example-screenshot.png

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:

streamlit-survey-screenshot.png

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:

Streamlit-Survey Documentation

License

  • Apache 2.0

History

0.1.0 (2023-03-23)

  • First release.

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_survey-0.1.0.tar.gz (167.0 kB view hashes)

Uploaded Source

Built Distribution

streamlit_survey-0.1.0-py2.py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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