fastpdb
A high performance drop-in replacement for Biotite's PDBFile.
What it is and what it does
fastpdb is a Rust-compiled library that provides a drop-in replacement for Biotite's PDBFile class, maintaining the same API while delivering multiple times faster performance for reading and writing PDB structure files. It is designed for structural biology workflows where PDB files are a standard input format.
The package wraps Rust code to accelerate I/O operations on Protein Data Bank files, making it suitable for high-throughput structural analysis pipelines. It depends on biotite at runtime and supports Python versions from 3.7 onward across macOS, Windows, and Linux. The repository is now archived and marked abandoned, meaning no new features or maintenance should be expected, though the latest release is recent enough to support current Python versions.
Use it for:
- Accelerating PDB file parsing in large-scale structural biology data pipelines.
- Replacing biotite's PDBFile in existing code without API changes to gain performance.
- Reading and writing protein structures for molecular dynamics or docking simulations.
- Batch processing of PDB files in bioinformatics workflows where I/O is a bottleneck.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
fastpdb is a Rust-based drop-in replacement for Biotite's PDBFile that reads and writes PDB structure files with significantly higher performance than the original Python implementation.
Yes, if you are already using biotite for PDB file I/O and performance is a concern—fastpdb is a straightforward, permissively licensed replacement with no API changes. However, the abandoned repository status means no future updates or bug fixes should be expected; install only if the current feature set meets your needs and you are comfortable maintaining a frozen dependency.
Install
fastpdb on PyPI
pip
pip install fastpdbuv
uv add fastpdbpoetry
poetry add fastpdbInstalling fastpdb
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms. The package is marked abandoned, though the latest release is recent (2025-05-27). No active maintenance should be expected going forward.
License in practice
Licensed under a permissive license (BSD), so there are no restrictions on commercial or proprietary use of code that depends on fastpdb.
Quickstart
import fastpdb
in_file = fastpdb.PDBFile.read("path/to/file.pdb")
atom_array = in_file.get_structure(model=1)
out_file = fastpdb.PDBFile()
out_file.set_structure(atom_array)
out_file.write("path/to/another_file.pdb")
Requires biotite as a runtime dependency; does not yet support hybrid-36 PDB format.
Verify before relying
- Whether the abandoned status will affect long-term compatibility with future Python or dependency updates.
- Scope and completeness of PDB format support beyond the noted absence of hybrid-36 format.
- Real-world performance gains relative to biotite in typical bioinformatics workflows.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — biotite |
| Maintenance | abandoned — 444 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 117,709/month — #12,152 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fastpdb-1.3.3-cp310-cp310-macosx_11_0_arm64.whl; fastpdb-1.3.3-cp310-cp310-manylinux_2_34_x86_64.whl; fastpdb-1.3.3-cp310-cp310-win_amd64.whl; fastpdb-1.3.3-cp311-cp311-macosx_11_0_arm64.whl; fastpdb-1.3.3-cp311-cp311-manylinux_2_34_x86_64.whl; fastpdb-1.3.3-cp311-cp311-win_amd64.whl; fastpdb-1.3.3-cp312-cp312-macosx_11_0_arm64.whl; fastpdb-1.3.3-cp312-cp312-manylinux_2_34_x86_64.whl; fastpdb-1.3.3-cp312-cp312-win_amd64.whl; fastpdb-1.3.3-cp313-cp313-macosx_11_0_arm64.whl; fastpdb-1.3.3-cp313-cp313-manylinux_2_34_x86_64.whl; fastpdb-1.3.3-cp313-cp313-win_amd64.whl
Keywords: pdb-files
Tags
More Bio-Informatics packages
NetworkX provides data structures and…
permissive · top 1,000 on PyPI
biopythonBiopython provides Python tools for…
unclear · top 5,000 on PyPI
firecrawl-pyClient library for the Firecrawl API that…
permissive · top 5,000 on PyPI
intervaltreeA self-balancing interval tree data structure…
permissive · top 5,000 on PyPI
albumentationsAlbumentations applies image transformations to…
permissive · top 5,000 on PyPI
PubChemPyPubChemPy is a Python wrapper around the…
permissive · top 5,000 on PyPI
biotiteBiotite provides a unified Python library for…
permissive · top 5,000 on PyPI
betterproto-rust-codecProvides fast Rust-based conversion between…
permissive · top 15,000 on PyPI
pdb2pqrPDB2PQR prepares protein structures from PDB…
permissive · top 15,000 on PyPI
pdbpppdbpp is a drop-in replacement for Python's…
permissive · top 5,000 on PyPI
pdbppdbp is an enhanced Python debugger that…
permissive · top 5,000 on PyPI
mmcif-pdbxProvides a pure Python interface to read,…
permissive · top 15,000 on PyPI
gemmiGemmi is a C++ library with Python bindings for…
copyleft · top 5,000 on PyPI
rpdbrpdb is a remote debugger that wraps Python's…
unclear · top 15,000 on PyPI
zlib-ngProvides faster zlib and gzip compression and…
permissive · top 5,000 on PyPI
biotrajReads and writes molecular dynamics trajectory…
copyleft · top 5,000 on PyPI