Overview
Eel is a library for making simple Electron-like desktop apps with Python and web technologies. It's designed to allow you to use familiar web tech to interface with Python on the backend.
Key features
- Use HTML, CSS, and JavaScript for UI
- Integrate Python code seamlessly
- Communication between Python and JavaScript
- Lightweight and easy to set up
- Based on Chromium browser engine
Common use cases
- Cross-platform desktop applications
- Apps with web-based UIs
- Python scripts with graphical interfaces
- Prototyping web-applications as desktop apps
- Small tools with a GUI requirement
Installation
pip install eel
Example
import eel
eel.init('web')
@eel.expose
def say_hello_py(x):
print("Hello from %s" % x)
eel.start('main.html', size=(400, 300))