licensed_mixin

A mixin class providing common methods and attributes for devices with installable licenses.

LicensedMixin

Bases: ABC

flowchart LR tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin.LicensedMixin[LicensedMixin] click tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin.LicensedMixin href "" "tm_devices.driver_mixins.abstract_device_functionality.licensed_mixin.LicensedMixin"

A mixin class which adds methods and properties for handling licenses.

license_list abstractmethod cached property

license_list: tuple[str, ...]

Return the list of licenses installed on the device.

has_license

has_license(license_name: str) -> bool

Check if the given license name is in the license list of the device.

Parameters:
  • license_name (str) –

    The name of the license to check for in the license list.

Returns:
  • bool

    A boolean indicating if the license name is in the list.