streamlit-faker is a library to very easily fake Streamlit commands
Project description
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit_faker-0.0.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_faker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d3d910d9be3e60f07c21b28d2ed0487737e071e48ce1faf858e1f68e05b624 |
|
MD5 | e038c157e2fa9997c05b3222b7c5c68b |
|
BLAKE2b-256 | e59c6d51d696c18edf7edf49f42e83d4dacd01be9a5f8ad51e1fa8bd06b460a3 |