Reads real formats
FASTA, GenBank, PDB, and alignment formats become Python objects.

Biopython turns sequence files, database records, and structure files into ordinary Python objects you can inspect, slice, and analyse.
What it is
Biopython turns sequence files, database records, and structure files into ordinary Python objects you can inspect, slice, and analyse.
FASTA, GenBank, PDB, and alignment formats become Python objects.
Entrez helpers fetch sequence and literature records with retry handling.
Translation, statistics, structure handling, and tree building are included.
Capabilities
Use consistent APIs across common biological data.
Read and write FASTA, GenBank, and alignment formats.
Query NCBI databases and retrieve records programmatically.
Parse PDB files and work with protein structures as objects.
How to use
Install the package and begin with a sequence file.
One pip install, with no system packages required.
pip install biopythonPoint the parser at a file and inspect each record.
from Bio import SeqIO
for record in SeqIO.parse("sequences.fasta", "fasta"):
print(record.id, len(record.seq))Keep exploring
Scientific computingThe foundation of scientific computing in Python — N-dimensional arrays, broadcasting, and fast vectorized math.
Local AIRun open-source language models on your own laptop. Pull a model, chat in the terminal, or call it at localhost:11434.
Data appsTurn a normal Python script into an interactive web app in minutes — dashboards, reports, and chat interfaces without a frontend build.