A streaming API example with Flask and Gevent (with SSE support)