rpyutils.import_c_library module

rpyutils.import_c_library.import_c_library(name: str, package: str | None = None)

Import and return a C extension library using importlib, with consistent error messaging.

See importlib.import_module documentation for details on the parameters and return type.

:param name :param package :return The loaded module :raises ImportError