Skip to content

Commit

Permalink
Bump to v0.15.2
Browse files Browse the repository at this point in the history
To release `eel.register_eel_routes`
  • Loading branch information
samuelhwilliams committed Feb 5, 2023
1 parent cc7eea5 commit c83f4f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log

### v0.15.2
* Adds `register_eel_routes` to handle applying Eel routes to non-Bottle custom app instances.

### v0.15.1
* Bump bottle dependency from 0.12.13 to 0.12.20 to address the critical CVE-2022-31799 and moderate CVE-2020-28473.

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ As of Eel v0.12.0, the following options are available to `start()`:
- **position**, a tuple of ints specifying the (left, top) of the main window in pixels *Default: `None`*
- **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: {}*
- **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`*
- **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.
- **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.
- **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


Expand Down
2 changes: 1 addition & 1 deletion examples/10 - custom_app_routes/custom_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def custom_route():
# middleware = SessionMiddleware(app)
# eel.start('index.html', app=middleware)

eel.start('index.html', app=app)
eel.start('index.html', app=app)
2 changes: 1 addition & 1 deletion examples/10 - custom_app_routes/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
<title>Hello, World!</title>
</head>

</html>
</html>
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='Eel',
version='0.15.1',
version='0.15.2',
author='Python Eel Organisation',
author_email='[email protected]',
url='https://github.com/python-eel/Eel',
Expand Down

0 comments on commit c83f4f8

Please sign in to comment.