capytaine.tools.optional_imports module

Tool to import optional dependencies. Inspired by similar code in pandas.

capytaine.tools.optional_imports.import_optional_dependency(module_name: str, package_name: str = None)[source]
capytaine.tools.optional_imports.silently_import_optional_dependency(module_name: str)[source]