Skip to content

diogo-rossi/streamlitrunner

Repository files navigation

Streamlit Runner

A simple way to run Streamlit app as a desktop app, using pywebview

Installation

pip install streamlitrunner

Usage

Import streamlitrunner and call run()

# my_app.py
import streamlitrunner as sr
import streamlit as st

def main():
    st.title("Hello World!")
    st.write("This is a simple text example.")

if __name__ == '__main__':
    sr.run()
    main()

Now you can only call python my_app.py and it will work as a desktop app!

Note:
To prevent streamlit warnings, call run() before any st call, as above.

Documentation:

https://streamlitrunner.readthedocs.io/en/latest/

About

A simple way to run Streamlit app as a desktop app, using pywebview

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages