You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the first release of the version 25 [release cycle](../../organization/policies.md#release-schedule). The release cadence for v24 may be slightly altered from years past. Make sure to stay up to date in the Discord server for latest updates. If you run into any issues, please raise a concern on [GitHub](https://github.com/sanic-org/sanic/issues/new/choose).
13
+
14
+
## What to know
15
+
16
+
More details in the [Changelog](../changelog.html). Notable new or breaking features, and what to upgrade:
17
+
18
+
### REPL Context
19
+
20
+
In [v23.12](../2023/v23.12.md#-embetaem-welcome-to-the-sanic-interactive-console) we introduced the [Development REPL](/en/guide/running/development.html#development-repl). The goal was to allow you to enter into an enhanced Python REPL from inside your running Sanic application. One of its features is several built-ins to allow you to easily interact with your app and with Sanic.
21
+
22
+
You now can add your own custom objects to the REPL
23
+
24
+
```python
25
+
import os
26
+
27
+
deffoo():
28
+
"""This docstring will show in the REPL"""
29
+
30
+
app.repl_ctx.foo = foo
31
+
app.repl_ctx.os = os
32
+
```
33
+
34
+
There is also a lower-level API that you can use if (for example) you want to control the help test displayed in the REPL for your objects:
35
+
36
+
```python
37
+
app.repl_ctx.add(foo)
38
+
app.repl_ctx.add(os, desc="Standard os module.")
39
+
```
40
+
41
+
42
+
## Thank you
43
+
44
+
Thank you to everyone that participated in this release: :clap:
If you enjoy the project, please consider contributing. Of course we love code contributions, but we also love contributions in any form. Consider writing some documentation, showing off use cases, joining conversations and making your voice known, and if you are able: [financial contributions](https://opencollective.com/sanic-org/).
-[#3046](https://github.com/sanic-org/sanic/pull/3046) Support latest v14 `websockets`
18
+
-[#3049](https://github.com/sanic-org/sanic/pull/3049) Subclassing `HTTPMethodView` to allow generics
19
+
20
+
### Bugfixes
21
+
-[#3047](https://github.com/sanic-org/sanic/pull/3047) Add default to `response.cookies`
22
+
-[#3048](https://github.com/sanic-org/sanic/pull/3048) Add exception logging on connection auto close
23
+
24
+
25
+
### Developer infrastructure
26
+
-[#3023](https://github.com/sanic-org/sanic/pull/3023) Cleanup from Python 3.8 removal
27
+
-[#3024](https://github.com/sanic-org/sanic/pull/3024) Improve type hinting
0 commit comments