super_hydro.clients.flask

Flask Client.

The flask client runs a webserver on the client machine, and allows users to run a selection of models.

For more details see Flask Client.

Functions

get_server(flask_client, model_name[, ...])

Generates a Server object for computation and communication.

get_server_proxy(flask_client, model_name[, ...])

Returns a ServerProxy object with appropriate local server or network server communication property.

log(msg[, level])

Log msg to the logger.

log_task(msg[, level])

Context for tasks with paired start and Done messages.

route(*v, **kw)

Use in class methods where @app.route would be used.

run(*args, **kwargs)

Run the Flask web framework.

Classes

DensityMixin()

Basic client mixin with functions for manipulating density array.

FlaskClient(*args, **kwargs)

Encapsulates the Flask app.

ModelNamespace(flask_client, root, **kw)

Flask-SocketIO Socket container for a model.

OrderedDict

Dictionary that remembers insertion order

ServerProxy(opts)

ServerProxy allows the user to interact with a computational server.