from typing import OrderedDict


def parse_attributes(attribute_str):
    """
    Parse attribute field of GFF3 file

    :param attribute_str: attribute field as string
    :return: dict with the values for each attribute as key
    """
    attributes = attribute_str.split(';')
    output = OrderedDict()

    for attribute in attributes:
        key, value = attribute.split('=')
        output[key] = value

    return output