Skip to main content

A high performance drop-in replacement for Biotite's PDBFile.

Project description

fastpdb


A high performance drop-in replacement for Biotite’s PDBFile written in Rust.

Installation

fastpdb can be installed via

$ pip install fastpdb

Usage

You can simply replace biotite.structure.io.pdb.PDBFile by fastpdb.PDBFile. The methods and their parameters are the same.

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")

Note that fastpdb does not yet support the hybrid-36 PDB format.

Performance

fastpdb is multiple times faster than biotite.

https://raw.githubusercontent.com/biotite-dev/fastpdb/main/benchmark.svg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastpdb-1.3.3.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastpdb-1.3.3-cp313-cp313-win_amd64.whl (229.0 kB view details)

Uploaded CPython 3.13Windows x86-64

fastpdb-1.3.3-cp313-cp313-manylinux_2_34_x86_64.whl (372.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fastpdb-1.3.3-cp313-cp313-macosx_11_0_arm64.whl (333.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fastpdb-1.3.3-cp312-cp312-win_amd64.whl (229.3 kB view details)

Uploaded CPython 3.12Windows x86-64

fastpdb-1.3.3-cp312-cp312-manylinux_2_34_x86_64.whl (373.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fastpdb-1.3.3-cp312-cp312-macosx_11_0_arm64.whl (333.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

fastpdb-1.3.3-cp311-cp311-win_amd64.whl (229.5 kB view details)

Uploaded CPython 3.11Windows x86-64

fastpdb-1.3.3-cp311-cp311-manylinux_2_34_x86_64.whl (373.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

fastpdb-1.3.3-cp311-cp311-macosx_11_0_arm64.whl (337.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

fastpdb-1.3.3-cp310-cp310-win_amd64.whl (229.4 kB view details)

Uploaded CPython 3.10Windows x86-64

fastpdb-1.3.3-cp310-cp310-manylinux_2_34_x86_64.whl (373.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

fastpdb-1.3.3-cp310-cp310-macosx_11_0_arm64.whl (337.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file fastpdb-1.3.3.tar.gz.

File metadata

  • Download URL: fastpdb-1.3.3.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastpdb-1.3.3.tar.gz
Algorithm Hash digest
SHA256 ddae2c4d49251f7ebc918507d09bc57e8be4ff83d898fcf9e6d521846353cfed
MD5 3b71f2b655f0b5569074c0f4f6c8ac8a
BLAKE2b-256 9b0e21f7131d90e8b0d20d2a78990d20b4f9e549973e6da10b58f4231aa52f96

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.3.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 229.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastpdb-1.3.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f508b177d18158a953f803fe496dcaa02f91c78b7710a8fcdc960ec67d2d576f
MD5 43ece2b1e5bd301da0361a891113fe90
BLAKE2b-256 f60faa374dc3a535d5b621748fac905079a1e7760668c572d424c8b95a9bb95c

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 04f7b65715431186cd34e71256a8b0430c2d86ea40cc6ae7bac9339674f9960f
MD5 852294cbe322aef7b82376c009b31458
BLAKE2b-256 9d7a9a48ac419ec2342a4a11c759356ec958df051f0be86cc346e6e2d6bbf5e1

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21981690ff48780e18c5a844e741a597e8ed039a2ff363f9a6800c66f38ac99e
MD5 82fec8afd8460e0b4f337c04fe378582
BLAKE2b-256 1211dd9302a1cdfe0c6a3476aef9e877f65c6450c9e492f644557a9e7b13f6f2

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.3.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 229.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastpdb-1.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6c507d1264f85ff314ee48313aac49fd67fdf408fbd68718cace46ecbb09f1b
MD5 4b23a8a22b1ac0f1a9a6192408803ab4
BLAKE2b-256 ee2deac4b65c0e927aa2f300e6849e7a3865351e51e6f7762674d3ca4732332d

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2f1ad05682fead811b279ade945009324efc29578377cf9128ac9b6b942cedde
MD5 f0d825151f15afda987dad423ebe5729
BLAKE2b-256 8699123f206acf75648cb8f8316889966095d023f6717231d1c71b296d8ebcf0

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 646e1d245e2cd5f5a10e15aa1dbc087da99a7f753ccc50024f16794b6c0a5872
MD5 2058c3b166c1017b7480adb35ad6582f
BLAKE2b-256 a1cc7ad17f5dc27c61b76eda8e512e398dbd8efcb3d5ea9e07f8055e0b8b63f9

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.3.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 229.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastpdb-1.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b3ff38d0c93329d63a46de71ecc44af0d50326d8a2774bdf19e35279ce57bcc9
MD5 0eaa0373d1f403ada655432525141aa3
BLAKE2b-256 b09c0cbc1b77c440d983963c313afe55f69cb7d7be9cb9ac5ba7f20b08e7d0db

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2f1b5356b591baf4203239af206287cc169968fee632c0a38ee68057fa3d1550
MD5 653203f1a6e8504edf90d85d56ac7f13
BLAKE2b-256 a85698dcafe1a951fff635f7e46c8385ce95ae0bb7fb82017497ffa7a9b435b4

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cabaad654876b8f7377c26a2a480d8c1f7fb52d97174f9ada53a03867e079163
MD5 96214103fc60c23e4266a4d14e5d0e42
BLAKE2b-256 3e7b15e512f2f0bc91f0d5fee9c0ea1678ef526c6e14e78e0e670911514943ed

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.3.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 229.4 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastpdb-1.3.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 140e4c9c67f1603b434220c7e1a7883d7701ab5fbef1ee19a445b2e17fc0213a
MD5 2e4d5a393d88a55233dbd7cabff8dd72
BLAKE2b-256 9dbd07ef90bf1e58ee9c1e10d85efd5b357c9a7a7ececd4312cb9ac9357e4368

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 65d17ff46a66d703d7b6738093b4d9f3a19868bb6ad01b6cb94d8c0d96dd878a
MD5 72dd6afb9524dd50453e5ba54bdc9f93
BLAKE2b-256 64189b33ff3d9a4e9c7e9e8d5cb7a67ef7c2aa2c012487b740e1bebbd0ff1463

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b34d06e52ce18523c1aa6891a3e1f51c8606e5a7ae274f3f659356e8a630369
MD5 5eb61970d447679bef3a832dba04afdd
BLAKE2b-256 b35a5ffb286c2592eb2f413b66e9936ef7b47e9a3d5cdb3edc642e85d9a71b70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page