Skip to main content

A little streamlit wizard

Project description

streamlit-wizard

This is an example of creating a wizard within Streamlit.

To use it, create your page objects by inheriting from the Page class in components, and pass the resulting pages into the Wizard class as illustrated in main.py.

Styling

Some custom CSS styling is used for the container. You can fiddle with it in static/style.css

State

Streamlit session state is used to store the current page and to move data between pages. See example_pages.py for an example of how you can retrieve data stored on previous pages. I've not thought this pattern through very deeply, please let me know if there's a better way of doing it - obviously handling state in nested components in complex, see Redux.

Running

pip install -r requirements.txt
streamlit run main.py

Publishing

python3 -m build `python3 -m twine upload --repository testpypi dist/*

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_wizard-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

streamlit_wizard-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_wizard-0.0.2.tar.gz.

File metadata

  • Download URL: streamlit_wizard-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.4

File hashes

Hashes for streamlit_wizard-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d972594b6558e5d939e9efe30529c65ffcff74b565f177260fb6011bbfe49180
MD5 9c66f5602561254073139f53a3616f28
BLAKE2b-256 26646128a71f4a8e98a641d7911fa10f525d70fe20c11cfcba15b4cee781bcb0

See more details on using hashes here.

File details

Details for the file streamlit_wizard-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_wizard-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 322a26f732ac1ac4b888bafdc95a52ed72ebd645d03d11b8a8533998f7c1dfa1
MD5 da62e303008b9d1777bf00dd31214b14
BLAKE2b-256 3aa27df0b582934596f1fb60506d307777fb4bb8bcdefe99623c363db1c2be8e

See more details on using hashes here.

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