im trying to make a python app what framework do I use code example

Example 1: python simple web app

# Core web app using flask
# Download flask if you haven't
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run()

# If you want to put this on the internet, use something like heroku to deploy it.

Example 2: build a python app

pyinstaller needed
pip install pyinstaller

on windows cmd write:
pyinstaller.exe --onefile --debug=all --windowed --name=myApp --icon=img/app.ico --paths venv/path/site-package app.py

--onefile	include all in one file, optional
--debug		debug at app s launch, NOT use --windowed
--windowed	for gui applications, optional
--name		app name, optional
--icon		app s icon, optional
app.py		main file of the project

Example 3: real python kivy

$ pip install buildozer

Tags:

Misc Example