def showExports(peInstance):
    """ Show exports information """
    exports = peInstance.ntHeaders.optionalHeader.dataDirectory[consts.EXPORT_DIRECTORY].info
    if exports:
        exp_fields = exports.getFields()

        for field in exp_fields:
            print "%s -> %x" % (field,  exp_fields[field].value)
        
        for entry in exports.exportTable:
            entry_fields = entry.getFields()
            for field in entry_fields:
                print "%s -> %r" % (field,  entry_fields[field].value)    
    else:
        print "The file does not have exported functions."