require_package#

biotite.interface.rdkit.require_package(package)#

Check if the given package is installed and raise an exception if not.

Parameters:
packagestr

The name of the package to be checked.

Raises:
ImportError

If the package is not installed.

Notes

It is useful to call this function in the __init__.py of each interface subpackage, to obtain clear error messages about missing dependencies.