module_ module¶
Utilities for modules.
package_shortcut_config HybridConfig¶
Config for package shortcuts.
annotate_refname_parts function¶
Return the type of each reference name part.
assert_can_import function¶
Assert that a package can be imported.
Must be listed in opt_dep_config.
assert_can_import_any function¶
Assert that any from packages can be imported.
Must be listed in opt_dep_config.
check_installed function¶
Check if a package is installed.
find_class function¶
Find the class by its path.
get_api_ref function¶
Get the API reference to an object.
get_caller_qualname function¶
Returns the qualified name of the method or function that called this function.
get_imlucky_url function¶
Get the "I'm lucky" URL on DuckDuckGo for a query.
get_installed_overview function¶
Get an overview of installed packages in opt_dep_config.
get_method_class function¶
Get the class of a method.
get_module function¶
Get module of an object.
get_obj function¶
Get the object by its (resolved) reference name.
get_package_meta function¶
Get metadata of a package.
get_refname function¶
Parse and (optionally) resolve the reference name(s) of an object.
get_refname_module_and_qualname function¶
Get the module and the qualified name from a reference name.
get_refname_obj function¶
Get the object under a reference name.
imlucky function¶
Open the "I'm lucky" URL on DuckDuckGo for a query.
import_module_from_path function¶
Import the module from a path.
is_from_module function¶
Return whether obj is from module module.
list_module_keys function¶
List the names of all public functions and classes defined in the module module_name.
Includes the names listed in whitelist and excludes the names listed in blacklist.
open_api_ref function¶
Open the API reference to an object.
parse_refname function¶
Get the reference name of an object.
prepare_refname function¶
prepare_refname(
obj,
module=None,
resolve=True,
vbt_only=False,
return_parts=False,
raise_error=True
)
Prepare (optionally) the module and the qualified name.
resolve_refname function¶
Resolve a reference name.
search_package function¶
Search a package.
Match function should accept the name of the object and the object itself, and return a boolean.
warn_cannot_import function¶
Warn if a package is cannot be imported.
Must be listed in opt_dep_config.