edge_st_sdk.utils package

Submodules

edge_st_sdk.utils.edge_st_exceptions module

edge_st_exceptions

The edge_st_exceptions module defines exceptions raised by the EdgeSTSDK.

exception edge_st_sdk.utils.edge_st_exceptions.EdgeSTInvalidDataException(msg)[source]

Bases: Exception

Exception raised whenever invalid data are provided.

__init__(msg)[source]

Constructor

Parameters

msg (str) – The message to raise.

exception edge_st_sdk.utils.edge_st_exceptions.EdgeSTInvalidOperationException(msg)[source]

Bases: Exception

Exception raised whenever an invalid operation is performed.

__init__(msg)[source]

Constructor

Parameters

msg (str) – The message to raise.

edge_st_sdk.utils.python_utils module

python_utils

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

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

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

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

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

edge_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.

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

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

edge_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.

Module contents