pytuflow.TuflowBinaries

pytuflow.TuflowBinaries#

class TuflowBinaries#

Bases: object

Class for managing TUFLOW binary versions and paths. A single instance of this class is created and used globally. This instance should be used rather than manually initialising this class. To access the instance, import the tuflow_binaries variable:

Examples

>>> from pytuflow.util import tuflow_binaries
>>> tuflow_binaries.get('2023-03-AE')
'C:/TUFLOW/releases/2023-03-AE/TUFLOW_iSP_w64.exe'
__init__()#

Methods

check_tuflow_folders

Check the registered TUFLOW folders for new versions of TUFLOW binaries and update the version2bin dictionary.

convert_old_settings

Converts the old settings to the new settings.

get

load_reg_tuflow_folder_cache

Load the registered TUFLOW binary folders into its own dictionary.

load_reg_tuflow_version_cache

Load the registered TUFLOW binary versions into its own dictionary.

load_tuflow_settings_cache

Load the TuflowVersions object from the JSON file.

save_tuflow_settings_cache

Saves the tuflow versions to the cache (JSON file).

tuflow_version_json

Returns the path to the JSON file containing stored TUFLOW version info.

Attributes

reg_version2bin

path} - versions registered by the user only (not registered by folder)

folders

Registered TUFLOW binary folders

version2bin

path}