Audience
Developing teams in need of a lightweight ASGI framework/toolkit, which is ideal for building async web services in Python
About Starlette
Starlette includes an application class Starlette that nicely ties together all of its other functionality. A list of middleware to run for every request. A starlette application will always automatically include two middleware classes. ServerErrorMiddleware is added as the very outermost middleware, to handle any uncaught errors occurring anywhere in the entire stack. ExceptionMiddleware is added as the very innermost middleware, to deal with handled exception cases occurring in the routing or endpoints. Startup handler callables do not take any arguments and may be either standard functions or async functions. Shutdown handler callables do not take any arguments and may be either standard functions or async functions.