/streamlit-faker

Quickly prototype Streamlit app with synthetic data

Primary LanguagePython


streamlit-faker

This repository introduces streamlit-faker, a library to very easily fake Streamlit commands. You can use it to quickly draft a user interface or as a QA tool... or maybe something more (let us know!). It is built upon the great joke2k/faker project!

Get started

The package is available on PyPI!

pip install streamlit-faker

Introduction

Call any Streamlit command (see Streamlit docs e.g. .info(), subheader(), text_input()...) without parameters using streamlit-faker, and it will execute the command with random parameters.

  • Sample input:
# streamlit_app.py
from streamlit_faker import get_streamlit_faker

st_faker = get_streamlit_faker()
st_faker.subheader()
st_faker.markdown()
st_faker.selectbox()
st_faker.slider()
st_faker.map()
  • Don't forget to run streamlit run streamlit_app.py

  • Sample output:

image