Skip to main content

Survey components for Streamlit apps

Project description

Lifecycle: experimental Documentation on Streamlit Package on PyPI

Streamlit-Survey: Survey components for Streamlit apps

Streamlit-Survey is a Python package for incorporating surveys and structured feedback into Streamlit apps.

Installation

Streamlit-Survey can be installed from PyPI:

pip install streamlit-survey

Example

Simple paged survey example with a conditional structure and a submit button:

example-screenshot.png

Error auditing toy example for machine learning applications:

error-auditing-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.

  • Customizable paging and option to show a progress bar.

Read the docs:

Streamlit-Survey Documentation

License

  • Commons Clause + Apache 2.0

HISTORY

1.1.0 (2025-09-16)

  • Add support for feedback component.

  • Add support for segmented_control component.

  • Update Streamlit dependency to 1.40.0.

1.0.0 (2024-08-08)

  • Fix button customization in paged surveys.

  • Add progress bar option to pages.

  • Add option to pass a list to Page’s constructor, in order to both have the current page number and an associated value.

  • Add survey download button and file importer.

  • Add “widget_key” to survey data to help restore survey data for displayed widgets.

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-1.1.0.tar.gz (208.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_survey-1.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_survey-1.1.0.tar.gz.

File metadata

  • Download URL: streamlit_survey-1.1.0.tar.gz
  • Upload date:
  • Size: 208.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for streamlit_survey-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0c3af06d53e92df61fc58577c0ac345148d74d2deccb69bf88b398bb7c6fb79d
MD5 8ce23d53238f57aaf0ca907003af61e9
BLAKE2b-256 3ef9671ca4025bd40461a27e05869c530342133329fe8b9ba87b259a2386dd29

See more details on using hashes here.

File details

Details for the file streamlit_survey-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_survey-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a00bdf02c22fbbc11fd498122fb64e22c8f7c5be41672af3b7f99b40f1c1aea5
MD5 b30c5b375998cefd326678deae7e3e64
BLAKE2b-256 eb4a49e47853216b27ba413ad2a4768129d8aff117aa76cded0601e1d3e911db

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