Version 25.3

Table of Contents

Introduction#

This is the first release of the version 25 release cycle. 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.

What to know#

More details in the Changelog. Notable new or breaking features, and what to upgrade:

REPL Context#

In v23.12 we introduced the 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.

You now can add your own custom objects to the REPL

import os

def foo():
    """This docstring will show in the REPL"""
    
app.repl_ctx.foo = foo
app.repl_ctx.os = os

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:

app.repl_ctx.add(foo)
app.repl_ctx.add(os, desc="Standard os module.")

Thank you#

Thank you to everyone that participated in this release: :clap:

@ahopkins @erhuabushuo @eric-spitler @goodki-d @SaidBySolo


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.