medcat.utils.saving.envsnapshot
Module Contents
Functions
Get the set of direct dependeny names. |
|
Get the installed packages and their versions. |
|
Get the current environment information. |
Attributes
- medcat.utils.saving.envsnapshot.ENV_SNAPSHOT_FILE_NAME = 'environment_snapshot.json'
- medcat.utils.saving.envsnapshot.INSTALL_REQUIRES_FILE_PATH
- medcat.utils.saving.envsnapshot.INSTALL_REQUIRES_FILE_PATH_PIP
- medcat.utils.saving.envsnapshot.get_direct_dependencies()
Get the set of direct dependeny names.
The current implementation reads install_requires.txt for dependenceies, removes comments, whitespace, quotes; removes the versions and returns the names as a set.
- Returns:
Set[str] – The set of direct dependeny names.
- Return type:
Set[str]
- medcat.utils.saving.envsnapshot.get_installed_packages()
Get the installed packages and their versions.
- Returns:
List[List[str]] – List of lists. Each item contains of a dependency name and version.
- Return type:
List[List[str]]
- medcat.utils.saving.envsnapshot.get_environment_info()
Get the current environment information.
This includes dependency versions, the OS, the CPU architecture and the python version.
- Returns:
Dict[str, Any] – _description_
- Return type:
Dict[str, Any]