import importlib


def import_class(value):
    """Import the given class based on string.

    :param value: [path of the class]
    :type value: [str]
    :returns: [class object]
    :rtype: {[Object]}
    """
    value, class_name = value.rsplit(".", 1)
    module = importlib.import_module(value)
    return getattr(module, class_name)