# -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from spreadsheetconverter.utils import load_module


def get_value_converter(setting):
    """
    :type setting: dict
    """
    loader_module = load_module('spreadsheetconverter.loader.valueconverter.{}',
                                setting['type'])

    return loader_module.ValueConverter(setting)
