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.app.get_client(url=None, hot_reload=False, **kwargs)
Return a client to a remote trame applications. If a url is given and such client is not available yet, it will be created otherwise the previously created instance will be returned.
- Parameters:
- Returns:
Return a unique Client instance per given url. Each instance need to a connect() call.
- Return type:
trame_server.client.Client