Package installed

Check if package is installed.

Used by multiple modules; separated to keep DRY

drain_swamp._package_installed.__all__: tuple[str] = ("is_package_installed",)

Module exports

drain_swamp._package_installed.is_package_installed(app_name)

Check if package is installed

Parameters:

app_name (str) – Accepts either package name or app name. No need for check

Returns:

True package is installed otherwise False

Return type:

bool