tac.gui.launcher package

Submodules

tac.gui.launcher.app module

The main entrypoint for the launcher app.

tac.gui.launcher.config module

Configuration file for the Flask server.

tac.gui.launcher.home module

Implement the basic Flask blueprint for the common web pages (e.g. the index page).

Render the grid search page.

tac.gui.launcher.home.index()

Render the index page of the launcher app.

tac.gui.launcher.home.launcher()

Render the launcher page.

Module contents

Implement a Flask-based server for controlling the simulation.

In particular, it provides REST methods to start/stop a sandbox and an agent, alongside a GUI to let the

user to easily change the parameters.

class tac.gui.launcher.CustomFlask(*args, **kwargs)

Bases: flask.app.Flask

Wrapper of the Flask app.

run(*args, **kwargs)

Wrap the run method to hide setup and teardown operations to the user.

run_sandbox_queue()

Consume elements from the sandbox queue.

setup()

Set up resources before running the main app.

teardown()

Teardown the allocated resources.

tac.gui.launcher.create_app(test_config=None)

Create and configure an instance of the Flask application.

tac.gui.launcher.kill_any_running_oef()

Kill any running OEF instance.