Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T10:16:27.000Z (8 months ago)
- Last Synced: 2024-12-16T02:12:10.609Z (2 months 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:[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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.
[![Hire concaption on upwork: https://www.upwork.com/freelancers/concaption](https://img.shields.io/badge/UpWork-6FDA44?style=for-the-badge&logo=Upwork&logoColor=white)](https://www.upwork.com/freelancers/concaption)