Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arnaudmiribel/streamlit-faker
A faker for Streamlit
https://github.com/arnaudmiribel/streamlit-faker
Last synced: about 10 hours ago
JSON representation
A faker for Streamlit
- Host: GitHub
- URL: https://github.com/arnaudmiribel/streamlit-faker
- Owner: arnaudmiribel
- License: apache-2.0
- Created: 2022-09-29T16:33:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T14:14:01.000Z (6 months ago)
- Last Synced: 2025-01-07T04:38:52.909Z (7 days ago)
- Language: Python
- Size: 56.6 KB
- Stars: 25
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://github.com/joke2k/faker) project!
## Get started
The package is available on PyPI!
```
pip install streamlit-faker
```## Introduction
Call any Streamlit command (see [Streamlit docs](https://docs.streamlit.io) e.g. `.info()`, `subheader()`, `text_input()`...) **without** parameters using streamlit-faker, and it will execute the command with random parameters.
- Sample input:
```python
# streamlit_app.py
from streamlit_faker import get_streamlit_fakerst_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: