Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Widdershin/flask-desktop
flask-desktop lets you create first class desktop applications in Python with HTML/CSS
https://github.com/Widdershin/flask-desktop
Last synced: about 12 hours ago
JSON representation
flask-desktop lets you create first class desktop applications in Python with HTML/CSS
- Host: GitHub
- URL: https://github.com/Widdershin/flask-desktop
- Owner: Widdershin
- License: mit
- Created: 2013-09-06T06:31:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T10:46:38.000Z (over 1 year ago)
- Last Synced: 2024-10-31T00:02:24.657Z (12 days ago)
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 368
- Watchers: 25
- Forks: 61
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Widdershin/flask-desktop - flask-desktop lets you create first class desktop applications in Python with HTML/CSS (Python)
README
# flask-desktop
flask-desktop is a Python module that allows you to convert Flask apps into cross platform desktop apps with three lines of code.
## Installation:
::
pip install git+https://github.com/Widdershin/flask-desktop.git
I'd like to have flask-desktop available on pip, but currently don't have the time and headspace to make that happen. If you want this to happen, please do it and I'll add you as a collaborator to this repo.
## Usage:
::
from webui import WebUI # Add WebUI to your imports
from flask import Flask, render_template, requestapp = Flask(__name__)
ui = WebUI(app, debug=True) # Create a WebUI instance# all of your standard flask logic
if __name__ == '__main__':
ui.run() #replace app.run() with ui.run(), and that's itflask-desktop is powered by PySide2, and should run on Windows, Mac and Linux. You can even create standalone executables using PyInstaller!
## License
flask-desktop is licensed under the MIT License. See the LICENSE file for more details.