plom.server module (legacy)

Plom Legacy Server

This is the legacy Plom Server.

plom.server.launch(basedir=PosixPath('.'), *, master_token=None, logfile=None, logconsole=True)[source]

Launches the legacy Plom server.

Parameters:

basedir (pathlib.Path/str) – the directory containing the file space to be used by this server.

Keyword Arguments:
  • logfile (pathlib.Path/str/None) – name-only then relative to basedir else If omitted, use a default name with date and time included.

  • logconsole (bool) – if True (default) then log to the stderr.

  • master_token (None/str) – a 32 hex-digit string used to encrypt tokens in the database. Not needed on server unless you want to hot-restart the server without requiring users to log-off and log-in again. If None, a new token is created.

Returns:

None