def get_sections_file_parser(file):
    """
    Returns a sections file parser.

    :param file: File.
    :type file: unicode
    :return: Parser.
    :rtype: SectionsFileParser
    """

    if not foundations.common.path_exists(file):
        raise foundations.exceptions.FileExistsError(
            "{0} | '{1}' sections file doesn't exists!".format(__name__, file))

    sections_file_parser = SectionsFileParser(file)
    sections_file_parser.parse()
    return sections_file_parser
Returns a sections file parser.

    :param file: File.
    :type file: unicode
    :return: Parser.
    :rtype: SectionsFileParser