pliers.converters.get_converter

pliers.converters.get_converter(in_type, out_type, *args, **kwargs)[source]

Scans the list of available Converters and returns an instantiation of the first one whose input and output types match those passed in.

Parameters
  • in_type (type) – The type of input the converter must have.

  • out_type (type) – The type of output the converter must have.

  • args – Optional positional and keyword arguments to pass onto matching Converter’s initializer.

  • kwargs – Optional positional and keyword arguments to pass onto matching Converter’s initializer.