#!/usr/bin/env python3 from Bio import ExPASy from Bio import SeqIO with ExPASy.get_sprot_raw("O23729") as handle: seq_record = SeqIO.read(handle, "swiss") print(seq_record.id) print(seq_record.name) print(seq_record.description) print(repr(seq_record.seq)) print("Length %i" % len(seq_record)) print(seq_record.annotations["keywords"])