py_research.reflect.dist module#
Utils for reflecting the Python distributions.
- get_module_file(module)[source]#
Get the file of given module, if any.
- Parameters:
module (module) –
- Return type:
Path | None
- get_module_distribution(module)[source]#
Get the distribution package of given module, if any.
- Parameters:
module (module) –
- Return type:
Distribution | None
- get_file_repo(path)[source]#
Get the Git repository of given file, if any.
- Parameters:
path (Path) –
- Return type:
Repo | None
- get_module_repo(module)[source]#
Get the Git repository of given module, if any.
- Parameters:
module (module) –
- Return type:
Repo | None