bi_etl.utility.package_root module

bi_etl.utility.package_root.get_package_root_path(obj: object = None) Path[source]

Get the root path of a package given an object (default is this module).

Parameters:

obj – The object to inspect for package. Defaults to this module

Return type:

The root path of the package as a pathlib.Path

bi_etl.utility.package_root.get_package_root_str(obj: object = None) str[source]

Get the root path of a package given an object (default is this module).

Parameters:

obj – The object to inspect for package. Defaults to this module

Return type:

The root path of the package as a string