| Class | ImportTimeError | Errors that occurred while trying to import something to document it. | 
| Function | importfile | Import a Python source file or compiled file given its path. | 
| Function | ispackage | Guess whether a path refers to a package directory. | 
| Function | locate | Locate an object by name or dotted path, importing as necessary. | 
| Function | safe_import | Import a module; handle errors; return None if the module isn't found. | 
| Variable | LOGGER | Undocumented | 
| Parameters | |
| path: str | Undocumented | 
| Returns | |
| TypeLike | Undocumented | 
| Parameters | |
| path: str | Undocumented | 
| Returns | |
| bool | Undocumented | 
| Parameters | |
| path: str | Undocumented | 
| force_load: bool | Undocumented | 
| Returns | |
| Any | Undocumented | 
Import a module; handle errors; return None if the module isn't found.
If the module *is* found but an exception occurs, it's wrapped in an ErrorDuringImport exception and reraised. Unlike __import__, if a package path is specified, the module at the end of the path is returned, not the package at the beginning. If the optional 'force_load' argument is True, we reload the module from disk (unless it's a dynamic extension).
| Parameters | |
| path: str | Undocumented | 
| force_load: bool | Undocumented | 
| cache: Dict[ | Undocumented | 
| Returns | |
| Any | Undocumented |