boilercore_dev.modules
#
Module names.
Module Contents#
Functions#
Get the directory of a package given the top-level module. |
|
Get an unqualified module name. |
|
Get a fully-qualified module name. |
API#
- boilercore_dev.modules.get_package_dir(
- package: types.ModuleType,
Get the directory of a package given the top-level module.
- boilercore_dev.modules.get_module_name(
- module: types.ModuleType | importlib.machinery.ModuleSpec | pathlib.Path | str,
Get an unqualified module name.
Example:
get_module_name(__spec__ or __file__)
.
- boilercore_dev.modules.get_qualified_module_name(
- module: types.ModuleType | importlib.machinery.ModuleSpec,
Get a fully-qualified module name.
Example:
get_module_name(__spec__ or __file__)
.