tlc.client.helpers
#
Miscellaneous helper functions.
Module Contents#
Functions#
Function |
Description |
---|---|
Return the active Run, if any. |
|
Set the active Run. |
|
Return the active project name, if any. |
|
Register an alias for a URL. |
|
Unregister an alias for a URL. |
|
Return the registered URL aliases. |
API#
- tlc.client.helpers.active_run() tlc.core.objects.mutable_objects.run.Run | None #
Return the active Run, if any.
- tlc.client.helpers.set_active_run(run: tlc.core.objects.mutable_objects.run.Run | tlc.core.url.Url) None #
Set the active Run.
- tlc.client.helpers.register_url_alias(token: str, path: str, force: bool = True) None #
Register an alias for a URL.
- Parameters:
token – The alias token to register. Must be match the regex
[A-Z][A-Z0-9_]*
.path – The path to alias.
force – If True, force the registration of the alias even if it is already registered.
- Raises:
ValueError – If the token is already registered and force is False.