https://github.com/concaption/streamlit-exe
https://github.com/concaption/streamlit-exe
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/concaption/streamlit-exe
- Owner: concaption
- Created: 2024-06-14T20:53:56.000Z (almost 2 years ago)
- Default Branch: second-app
- Last Pushed: 2024-06-21T11:25:31.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T19:45:06.156Z (about 1 year ago)
- Language: Python
- Size: 3.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Converting a streamlit app to exe
### Stlite Approach
Stlite is a WebAssembly port of Streamlit that runs on Pyodide runtime. Pyodide is an experimental project from Mozilla to create a full Python data science stack that runs entirely in the browser. A Streamlit application can be converted to an exe using Stlite desktop. This approach does not require you to deploy the Streamlit application to Streamlit share.
Install packages as follows:
```
npm install
```
Then create a directory to contain the application files, e.g., app. So the path of the main app file looks like app/app.py
Run the dump command to create the ./build folder.
```
npm run dump app
```
The dist command bundles the ./build directory created in the step above into application files (.app, .exe, .dmg etc.) in the ./dist directory.
```
npm run dist
```