Skip to content

v0.12.0 - Events added

Compare
Choose a tag to compare
@sansyrox sansyrox released this 20 Jan 22:38
· 404 commits to main since this release

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