get_project_io_method

glotaran.plugin_system.project_io_registration.get_project_io_method(format_name: str, method_name: ProjectIoMethods) Callable[..., Any][source]

Retrieve implementation of project io functionality for the format ‘format_name’.

This allows to get the proper help and autocomplete for the function, which is especially valuable if the function provides additional options.

Parameters:
  • format_name (str) – Format the dataloader should be able to read.

  • method_name ({'load_model', 'write_model', 'load_parameters', 'write_parameters', 'load_scheme', 'write_scheme', 'load_result', 'write_result'}) – Method name, e.g. load_model.

Returns:

The function which is called in the background by the convenience functions.

Return type:

Callable[…, Any]