v0.12.0 - Events added
Robyn now supports startup and shutdown events and is now backed with a more stable build backend.
Sample Usage
You can either use the decorator syntax or the functional call syntax to organise your code.
async def startup_handler():
logger.log(logging.INFO, "Starting up")
app.startup_handler(startup_handler)
@app.shutdown_handler
def shutdown_handler():
logger.log(logging.INFO, "Shutting down")
What's Changed
Special Thanks
- @klaa97 for making robyn's PR at TechEmpoweredBenchmark's repo!
Full Changelog: v0.11.1...v0.12.0