def get_wrapper_class(backend_name):
    try:
        return _WRAPPERS[backend_name]
    except KeyError:
        if backend_name == 'ni':
            from .ctwrapper import NIVisaLibrary
            _WRAPPERS['ni'] = NIVisaLibrary
            return NIVisaLibrary

    for pkgname in list_backends():
        if pkgname.endswith('-' + backend_name):
            pkg = __import__(pkgname)
            _WRAPPERS[backend_name] = cls = pkg.WRAPPER_CLASS
            return cls
    else:
        raise ValueError('Wrapper not found: No package named pyvisa-%s' % backend_name)
Return the WRAPPER_CLASS for a given backend.
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/get_wrapper_class