requires_package#

openfe.utils.requires_package(package_name: str) Callable#

Helper function to denote that a funciton requires some optional dependency. A function decorated with this decorator will raise MissingDependencyError if the package is not found by importlib.import_module(). :param package_name: The directory path to enter within the context :type package_name: str

Raises:

MissingDependencyError