kartograf.utils#
kartograf.utils.optional_imports#
Tools for integration with miscellaneous non-required packages. shamelessly borrowed from openff.toolkit
- kartograf.utils.optional_imports.requires_package(package_name: str) Callable#
Optional package detection function 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 –
- Parameters:
package_name (str)
- Return type:
Callable