:py:mod:`medcat.utils.saving.envsnapshot` ========================================= .. py:module:: medcat.utils.saving.envsnapshot Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: medcat.utils.saving.envsnapshot.get_direct_dependencies medcat.utils.saving.envsnapshot.get_installed_packages medcat.utils.saving.envsnapshot.get_environment_info Attributes ~~~~~~~~~~ .. autoapisummary:: medcat.utils.saving.envsnapshot.ENV_SNAPSHOT_FILE_NAME medcat.utils.saving.envsnapshot.INSTALL_REQUIRES_FILE_PATH medcat.utils.saving.envsnapshot.INSTALL_REQUIRES_FILE_PATH_PIP .. py:data:: ENV_SNAPSHOT_FILE_NAME :value: 'environment_snapshot.json' .. py:data:: INSTALL_REQUIRES_FILE_PATH .. py:data:: INSTALL_REQUIRES_FILE_PATH_PIP .. py:function:: 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. .. py:function:: 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. .. py:function:: 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_