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
Built Distribution
File details
Details for the file streamlit_faker-0.0.3.tar.gz
.
File metadata
- Download URL: streamlit_faker-0.0.3.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff0f053aa514a99313a3699746183b41111891c82d6e9b41b1c69a7d719bf2f |
|
MD5 | c4c6de42e0891f1ae9b5bdaca9e5b0c7 |
|
BLAKE2b-256 | bc148ad7e53d381a6c5da920e590e9a7521d542fbae55eb6ec842aaab58f2ff9 |
File details
Details for the file streamlit_faker-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: streamlit_faker-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf410867b55b4877d8fe73cc987d089e1938f8e63594f1eb579e28015844215 |
|
MD5 | a3666ef49f89464a959626724a993fe1 |
|
BLAKE2b-256 | b02ed60c0214dc6bf626e37b9f37f7ac3a57c311946ebcc12c1fc0e7bcc4b8d6 |