Skip to main content
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.

Metadata

Release files for streamlit-survey 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-survey 1.1.0
File Size Uploaded
streamlit_survey-1.1.0.tar.gz 208.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-survey 1.1.0
File Interpreter ABI Platform
streamlit_survey-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 224.0 kB

Release files / streamlit_survey-1.1.0.tar.gz

Download URL streamlit_survey-1.1.0.tar.gz
Size 208.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0c3af06d53e92df61fc58577c0ac345148d74d2deccb69bf88b398bb7c6fb79d
BLAKE2b-256 checksum
How to use checksums
3ef9671ca4025bd40461a27e05869c530342133329fe8b9ba87b259a2386dd29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / streamlit_survey-1.1.0-py3-none-any.whl

Download URL streamlit_survey-1.1.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a00bdf02c22fbbc11fd498122fb64e22c8f7c5be41672af3b7f99b40f1c1aea5
BLAKE2b-256 checksum
How to use checksums
eb4a49e47853216b27ba413ad2a4768129d8aff117aa76cded0601e1d3e911db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page