π
st
- a friendly Streamlit CLI
st
is a CLI that helps you kick-off a new Streamlit project so you can start crafting the app as soon as possible!
How it works
$ st .
demo_quick.mov
π
Usage
Prerequisites
This is a working setup for anyone using Microsoft VS Code. Has been tested solely on Mac OSX.
Manually
- Install requirements:
pip install -r requirements.txt
-
Make sure to enable your CLI to access VS Code. See this link.
-
Add the alias to your
~/.bashrc
:
# Alias for st
alias st='python ~/your/path/to/st/st.py -p'
- Source it:
source ~/.bash_profile
Getting started
Run:
$ st {directory}
Documentation
$ python st.py --help
Usage: st.py [OPTIONS]
Options:
-p, --path TEXT Path where you want to create your Streamlit
project.
--open_project_in_vs_code INTEGER
Open VS code with the newly created file.
--run_app INTEGER Run Streamlit script
--open_app_in_browser INTEGER Open Streamlit app in browser
--help Show this message and exit.
Troubleshooting
- If you get
xcrun: error: invalid active developer path
... error:
Visit https://apple.stackexchange.com/a/254381 or run:
xcode-select --install