How ToUI works#
How ToUI creates web applications#
ToUI uses Flask to create web applications. To make the website responsive, ToUI communicates
with JavaScript through WebSockets. The WebSocket communication is established using the
Python package Flask-Sock and the JavaScript object WebSocket. JavaScript sends the
document object to Python while Python sends ‘instructions’ back to JavaScript:

How ToUI creates desktop apps#
ToUI uses pywebview to create graphical user interfaces (desktop apps). The communication between Python and JavaScript is similar to web apps but using js_api object in pywebview instead of WebSockets.
Security?#
For web apps, ToUI uses Flask web framework, Flask-Sock for communicating through WebSockets, and Flask-BasicAuth for restricting access to the website. To know more about the security of these Python packages, please find their documentations below:
ToUI uses pywebview for making desktop apps. To learn more about its security, please check this link: pywebview docs. Note that pywebview can create two types of apps: serverless apps or apps built by running a local web server. However, ToUI currently creates only serverless pywebview apps.