flask.sessions SessionMixin Example Code

SessionMixin is a class used with Flask projects that is defined in the flask.sessions module. SessionMixin expands a standard Python dictionary with session attributes.

BadSignature and SessionInterface are a couple of other callables within the flask.sessions package that also have code examples.

Example 1 from Flask-SocketIO

Flask-SocketIO (PyPI package information, official tutorial and project documentation) is a code library by Miguel Grinberg that provides Socket.IO integration for Flask applications. This extension makes it easier to add bi-directional communications on the web via the WebSockets protocol.

The Flask-SocketIO project is open source under the MIT license.

Flask-SocketIO / flask_socketio / init.py