hpcman
find_submodules()
Find submodules that contain an app.py file.
The app.py file contains the CLI entry for each submodule using typer. In the hpcman.app.py, each submodule app.py will be imported and the CLI entry for each submodule will be added to the app.py file.
Returns:
Name | Type | Description |
---|---|---|
submods |
List[str]
|
A list of submodules that contain an app.py file. |
Source code in hpcman/__init__.py
get_version()
Gets version string of hpcman using importlib. Falls back to extracting from the pyproject.toml file.
In python versions before 3.8, importlib_metadata.version is used. In python versions 3.8 and above, importlib.metadata.version is used.
The version string is extracted from the pyproject.toml file if the version is not otherwise found. This may happen in development environments.
Returns:
Name | Type | Description |
---|---|---|
__version__ |
str
|
Version string of hpcman. |