qat.core.qlmaas.qlmaas_warning

qat.core.qlmaas.qlmaas_warning(warning_message)

Decorator adding a warning message for Qaptiva Access services, the warning is sent to the user when the service is imported.

@qlmaas_warning("This QPU is deprecated")
class DeprecatedQpu(QPUHandler):
    "This qpu is deprecated"
    ...
# create a python warning with "This QPU is deprecated" as message
from qlmaas.qpus import DeprecatedQpu
Parameters:

warning_message (str) – message sent when the service is imported