startup
Program startup helper functions.
check_for_updates(console)
Check for updates to the Ephys Link.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
console
|
Console
|
Console instance for printing messages. |
required |
Source code in src/ephys_link/utils/startup.py
get_binding_display_to_cli_name()
Get mapping of display to CLI option names of the available platform bindings.
Returns:
Type | Description |
---|---|
dict[str, str]
|
Dictionary of platform binding display name to CLI option name. |
Source code in src/ephys_link/utils/startup.py
get_binding_instance(options, console)
Get an instance of the requested binding class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
options
|
EphysLinkOptions
|
Ephys Link options. |
required |
console
|
Console
|
Console instance for printing messages. |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If the platform type is not recognized. |
Returns:
Type | Description |
---|---|
BaseBinding
|
Instance of a platform binding class. |
Source code in src/ephys_link/utils/startup.py
get_bindings()
Get all binding classes from the bindings directory.
Returns:
Type | Description |
---|---|
list[type[BaseBinding]]
|
List of binding classes. |
Source code in src/ephys_link/utils/startup.py
preamble()
Print the server startup preamble.