@staticmethod
    def cf_dictionary_from_pairs(pairs):

        length = len(pairs)
        keys = []
        values = []
        for pair in pairs:
            key, value = pair
            keys.append(key)
            values.append(value)
        return CoreFoundation.CFDictionaryCreate(
            CoreFoundation.kCFAllocatorDefault,
            keys,
            values,
            length,
            ffi.addressof(CoreFoundation.kCFTypeDictionaryKeyCallBacks),
            ffi.addressof(CoreFoundation.kCFTypeDictionaryValueCallBacks)
        )
Creates a CFDictionaryRef object from a list of 2-element tuples
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_osx/_core_foundation_cffi.py/CFHelpers.cf_dictionary_from_pairs