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.2.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

fastpdb-1.2.0-cp311-none-win_amd64.whl (213.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

fastpdb-1.2.0-cp311-cp311-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

fastpdb-1.2.0-cp311-cp311-macosx_10_7_x86_64.whl (344.4 kB view details)

Uploaded CPython 3.11 macOS 10.7+ x86-64

fastpdb-1.2.0-cp310-none-win_amd64.whl (213.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

fastpdb-1.2.0-cp310-cp310-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

fastpdb-1.2.0-cp310-cp310-macosx_10_7_x86_64.whl (344.4 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

fastpdb-1.2.0-cp39-none-win_amd64.whl (213.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

fastpdb-1.2.0-cp39-cp39-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

fastpdb-1.2.0-cp39-cp39-macosx_10_7_x86_64.whl (344.5 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for fastpdb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 126eb07815494dda451438b33817193aeab8b6d2f056f4b138f086860d6ee7bd
MD5 22bd2ae60d0957d4655118d7327ef5c5
BLAKE2b-256 120b1548e896b37fc59d2cf202f033d1bcd294dcb0c7da98a686b1fd90f7cec0

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp311-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.2.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 213.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for fastpdb-1.2.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 216681c07711c534b55856616434ed06ef14ed88beaf13ea8931331ba30f5f27
MD5 247c0f49bc846343773f73fc198e410e
BLAKE2b-256 dc99ce08945492b8993bffdaf6e304a1fc17ef7ca766d74b28bdf9ef160275f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6812bdd7b16f1c4c8b05fc71d01194b3155af7249eb5d897c9a6230bb4c8a839
MD5 3d192601c2a20e2bd56edc8d43ba08aa
BLAKE2b-256 5e6daba1ca8270f538d6c12e2e614020e8ab6d59a0d1d1d4d5725dc70a0dd172

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8571eec49b5a22d88460c2f80cf9b7f50b83f0f36f3c65c9368a21ffcfebd6c2
MD5 d0b49f2dfa553a21e392f6d96e651427
BLAKE2b-256 5bda506027eade11aca520a88d9331063d8d1169f84d8401a968a5211a60ccf0

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp310-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.2.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 213.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for fastpdb-1.2.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 1b16779c74afb9a72b344977c421c280eacfe9baaf9032ae3e709c40b57b5cad
MD5 d05f123623ebd196db9c0b22d17cecb2
BLAKE2b-256 8a4e44d8e90a1fc10bbb35c674a9070e22c0f5dc44765c2567c91993a98c6410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b90453ffdaba3f67360c40dbd94dc7c313d29723584088a23c5b50ec8b9c4c71
MD5 8efefabc05611a3f9935feaa4edef1f7
BLAKE2b-256 35a3f1ad351fdf75134f5726563bcf3f3b089a63a4c3eee5974f3b066fd14aa9

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1a0aae03a3ee9fb4850d1a85deca9eb21b3cea3e86fe57ed3aa3018e5eae489c
MD5 db843abbb1896972d492d960af5952ca
BLAKE2b-256 a32e56ed1f5300107402d034d68dc36a34a73be94ec4164fa24703104c3181d7

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.2.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 213.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for fastpdb-1.2.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ddab3961a0481e06a2883d14c2555400e29f603a8bcc41a13bbd386c59de4cd6
MD5 044bba96dc4cf4149b03b7b1715d4ffb
BLAKE2b-256 7a1fee22c8b647e875db10637a66e882a5faae2c935ce5ea619ff42fc38d0dc0

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e4572dc10b158e5023faaaa188ed6cc291f0a64d244e79fd35e1005ebacfb70b
MD5 27ae58b01e005c10790efbefcbc4dde7
BLAKE2b-256 de7784a218da06f47bded3dd8b90600f0f5cf586450560e0d6165df6df5fab84

See more details on using hashes here.

File details

Details for the file fastpdb-1.2.0-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.2.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3940f5043e503bc179c61d881c186688ed76a1aadbbf2d1fecbbb4daa43fdb8a
MD5 81034bd617e271c02a0d82ee3620e35b
BLAKE2b-256 ddeac8d6cacb57556e1270cfbfd9ac32c150eeb57f2c1b1beb7126e84a312f50

See more details on using hashes here.

Supported by

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