wire_st_sdk.utils package

Submodules

wire_st_sdk.utils.python_utils module

python_utils

The python_utils module defines utility functions related to the Python language.

wire_st_sdk.utils.python_utils.get_class(class_name)[source]

Get a class from the class name throuth the ‘reflection’ property.

wire_st_sdk.utils.python_utils.lock(self)[source]

To be used to gain exclusive access to a block of code from different threads.

wire_st_sdk.utils.python_utils.lock_for_object(obj, locks={})[source]

To be used to gain exclusive access to a shared object from different threads.

wire_st_sdk.utils.python_utils.synchronized(call)[source]

To be used to synchronize a method called on the same object from different threads.

wire_st_sdk.utils.python_utils.synchronized_with_attr(lock_name)[source]

To be used to synchronize a method called on the same object from different threads.

wire_st_sdk.utils.wire_st_exceptions module

wire_st_exceptions

The wire_st_exceptions module defines exceptions raised by the WireSTSDK.

exception wire_st_sdk.utils.wire_st_exceptions.WireSTInvalidOperationException(msg)[source]

Bases: Exception

Exception raised whenever a command is not executed successfully.

__init__(msg)[source]

Constructor

Args:

msg (str): The message to raise.

Module contents