Metadata-Version: 2.4
Name: streamlitrunner
Version: 0.1.1
Summary: A module to run streamlit apps as local apps
Project-URL: Documentation, https://streamlitrunner.readthedocs.io/en/latest/
Project-URL: Issues, https://github.com/diogo-rossi/streamlitrunner/issues
Project-URL: Source, https://github.com/diogo-rossi/streamlitrunner
Author-email: Diogo Rossi <rossi.diogo@gmail.com>
License-File: LICENSE.txt
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: pywebview>=6.1
Requires-Dist: streamlit>=1.52.2
Description-Content-Type: text/markdown

# Streamlit Runner

![](./docs/streamlitrunner.png)

A simple way to run Streamlit app as a desktop app

## Installation

```shell
pip install streamlitrunner
```

## Usage

Import `streamlitrunner` and call `run()`

```python
# 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.

![](docs/streamlitrunner-example.png)

## Documentation:

[https://streamlitrunner.readthedocs.io/en/latest/](https://streamlitrunner.readthedocs.io/en/latest/)
