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

clear

count

get

items

Generator that yields the TUFLOW binary versions and paths as tuples.

load_dpkg_tuflow

load_installed_tuflow_versions

load_rpm_tuflow

load_tuflow_settings_cache

Load the TuflowVersions object from the JSON file.

load_versions

package_manager

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.

tuflow_version_query

Only tested post 2026.

Attributes

version2bin

user_bin_locations

User registered TUFLOW binary locations

user_folders

Registered TUFLOW binary folders