app

trame.app.get_server(name=None, create_if_missing=True, **kwargs)

Return a server for serving trame applications. If a name is given and such server is not available yet, it will be created otherwise the previously created instance will be returned.

Parameters:
  • name (str) – A server name identifier which can be useful when several servers are expected to be created. Most of the time, passing no arguments is what you are looking for.

  • create_if_missing (bool) – By default if a server for a given name does not exist that method will create it.

  • **kwargs

    any extra keyword args are passed as option to the server instance.

Returns:

Return a unique Server instance per given name.

Return type:

trame_server.core.Server