https://github.com/concaption/streamlit-to-exe
convert any streamlit app to an executable windows app
https://github.com/concaption/streamlit-to-exe
desktop-app streamlit streamlit-application windows
Last synced: about 1 year ago
JSON representation
convert any streamlit app to an executable windows app
- Host: GitHub
- URL: https://github.com/concaption/streamlit-to-exe
- Owner: concaption
- Created: 2024-06-21T11:11:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T10:16:27.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T19:45:05.018Z (about 1 year ago)
- Topics: desktop-app, streamlit, streamlit-application, windows
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Converting a Streamlit App to an Executable
To convert your Streamlit app to a Windows executable, follow these steps:
## Setting up the Environment
1. Start the GitHub Codespace by clicking on the badge below:
[](https://codespaces.new/concaption/streamlit-to-exe)
2. Wait for the environment to be set up. You are halfway done when the screen color changes from white to purple. Wait until your terminal is ready.
## Copy Your Streamlit App
1. Copy your Streamlit app into the `app/` folder. Ensure all necessary files are placed in this folder.
2. Remove anything that you are using under `if __name__ == "__main__"`. Also, ensure that you are not importing `from streamlit.web import cli as stcli`, etc. Only import ` import streamlit as st` in the app.
## Create the Executable
You can create the executable using the following command:
```sh
make
```
If you want to change the name according to your app, run the following command:
```sh
make app name=your_app_name_here
```
### Download the Files
The output files will be in the `dist/` directory. You can right click on the file and download it. The file that have Setup in its name is the setup file.
### Message me
You can message me on Upwork.
[](https://www.upwork.com/freelancers/concaption)