swh.search package

Module contents

Get an search object of class search_class with arguments search_args.

Parameters
  • cls (str) – search’s class, either ‘local’ or ‘remote’

  • args (dict) – dictionary of arguments passed to the search class constructor

Returns

an instance of swh.search’s classes (either local or remote)

Raises

ValueError if passed an unknown search class.