from pathlib import Path


def get_fasta_headers(fasta: Path) -> list:
    """ Pulls headers from any fasta file (e.g. lines starting with >) and returns them as a list """
    fasta_headers = []
    with open(str(fasta)) as f:
        for line in f.readlines():
            if line.startswith(">"):
                line = line[1:].strip()
                fasta_headers.append(line)
    return fasta_headers