Skip to content

Commit c83f4f8

Browse files
Bump to v0.15.2
To release `eel.register_eel_routes`
1 parent cc7eea5 commit c83f4f8

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change log
22

3+
### v0.15.2
4+
* Adds `register_eel_routes` to handle applying Eel routes to non-Bottle custom app instances.
5+
36
### v0.15.1
47
* Bump bottle dependency from 0.12.13 to 0.12.20 to address the critical CVE-2022-31799 and moderate CVE-2020-28473.
58

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ As of Eel v0.12.0, the following options are available to `start()`:
116116
- **position**, a tuple of ints specifying the (left, top) of the main window in pixels *Default: `None`*
117117
- **geometry**, a dictionary specifying the size and position for all windows. The keys should be the relative path of the page, and the values should be a dictionary of the form `{'size': (200, 100), 'position': (300, 50)}`. *Default: {}*
118118
- **close_callback**, a lambda or function that is called when a websocket to a window closes (i.e. when the user closes the window). It should take two arguments; a string which is the relative path of the page that just closed, and a list of other websockets that are still open. *Default: `None`*
119-
- **app**, an instance of Bottle which will be used rather than creating a fresh one. This can be used to install middleware on the
120-
instance before starting eel, e.g. for session management, authentication, etc.
119+
- **app**, an instance of Bottle which will be used rather than creating a fresh one. This can be used to install middleware on the instance before starting eel, e.g. for session management, authentication, etc. If your `app` is not a Bottle instance, you will need to call `eel.register_eel_routes(app)` on your custom app instance.
121120
- **shutdown_delay**, timer configurable for Eel's shutdown detection mechanism, whereby when any websocket closes, it waits `shutdown_delay` seconds, and then checks if there are now any websocket connections. If not, then Eel closes. In case the user has closed the browser and wants to exit the program. By default, the value of **shutdown_delay** is `1.0` second
122121

123122

examples/10 - custom_app_routes/custom_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def custom_route():
1414
# middleware = SessionMiddleware(app)
1515
# eel.start('index.html', app=middleware)
1616

17-
eel.start('index.html', app=app)
17+
eel.start('index.html', app=app)

examples/10 - custom_app_routes/web/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
<title>Hello, World!</title>
66
</head>
77

8-
</html>
8+
</html>

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='Eel',
9-
version='0.15.1',
9+
version='0.15.2',
1010
author='Python Eel Organisation',
1111
author_email='[email protected]',
1212
url='https://github.com/python-eel/Eel',

0 commit comments

Comments
 (0)