torchoutil.pyoutil.importlib module

class Placeholder(
*args,
**kwargs,
)[source]

Bases: object

Placeholder object. All instances attributes always returns the object itself.

is_available_package(
package: str,
) bool[source]

Returns True if package is installed in the current python environment.

is_editable_package(
package: str,
) bool[source]
package_is_available(
package: str,
) bool[source]

Returns True if package is installed in the current python environment.

reload_editable_packages(
*,
verbose: int = 0,
) List[module][source]
reload_submodules(
module: module,
*others: module,
verbose: int = 0,
only_editable: bool = True,
only_loaded: bool = False,
) List[module][source]
search_submodules(
root: module,
only_editable: bool = True,
only_loaded: bool = False,
) List[module][source]

Return the submodules already imported.