let's say I have a fasta of a protein sequence

    > albumin
    
    MKWVTFISLL FLFSSAYSRG ... ... ...

I want to split the sequence into all possible consecutive 8 amino acids (only in 1 direction, amino -> carboxyl) (And no looping(I don't know if it is the right expression), say, GMKWVTFIS)

I need

    > fasta.albumin1
    
    MKWVTFIS
    
    >fasta.albumin2
    
    KWVTFISL
    
    > fasta.albumin3
    
    WVTFISLLF
    
    ...
    
    
    > fasta.albumin13
    
    FSSAYSRG

And, I want to do this for all known human protein sequences.

How would I  do it???
I need the result as a fasta or fasta files. And IDs for resulting 8-mer seuqeunces need to be unique.



You requirement is to generate simple kmers from sequences.
BioPython solution.
Please change last print statement to: print('>'+str(record.id)+'|kmer_'+str(count)+'\n'+str(my_kmer))

    #!/usr/bin/env python3
    
    from Bio import SeqIO
    
        myfile=SeqIO.parse('test.fa','fasta')
        for record in myfile:
            sequence=record.seq
            seq_len=len(sequence)
            #define the kmer len
            kmer=8
            count=0
            for seq in list(range(seq_len-(kmer-1))):
                count=count+1
                my_kmer=(sequence[seq:seq+kmer])
                print('>'+str(record.id)+'|kmer_'+str(count)+'\n'+str(my_kmer))