Overview
Sanic 24.6, released on July 31, 2024, requires Python 3.12+ and benefits from interpreter performance improvements.
Main Features
Python 3.12+
By targeting Python 3.12+, Sanic benefits from the adaptive compiler and asyncio improvements for better server performance.
python
from sanic import Sanic, json
app = Sanic('MyApp')
@app.get('/')
async def home(request):
return json({'message': 'Hello from Sanic 24.6'})
# app.run(host='0.0.0.0', port=8000)
