hymir.utils module

hymir.utils.importable_name(obj)

Get the importable name for an object.

Note

This will not work for objects that are not defined in a module, such as lambdas, REPL functions, functions-in-functions, etc…

Parameters:

obj – The object to get the importable name for.

Returns:

str