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

Uploaded Source

Built Distributions

fastpdb-1.0.1-cp310-none-win_amd64.whl (200.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

fastpdb-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

fastpdb-1.0.1-cp310-cp310-macosx_10_7_x86_64.whl (305.3 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

fastpdb-1.0.1-cp39-none-win_amd64.whl (201.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

fastpdb-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

fastpdb-1.0.1-cp39-cp39-macosx_10_7_x86_64.whl (305.5 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

fastpdb-1.0.1-cp38-none-win_amd64.whl (201.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

fastpdb-1.0.1-cp38-cp38-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

fastpdb-1.0.1-cp38-cp38-macosx_10_7_x86_64.whl (305.5 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: fastpdb-1.0.1.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 375d0c739aaad6f275f0d0cb3ce50cea415e5f241dd44d4f28ac1a526a768d2a
MD5 a126bbb60c67e122d481414a2d564466
BLAKE2b-256 23038e27897cfe35075a19925847793cc49ed1f24e2ceab7d49fd4b14beb6b2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.1-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 200.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 724b00b51fb43284547e0b54b30e3f7b7d9337a050ed43d4e9f8267d19a45e3b
MD5 bc5add76dad6314ded203db527a73af2
BLAKE2b-256 d0e46085f18e6f61d9aa1346256d17fef2d047b206921eadf4ddd78dd8df8223

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba9d30315dcd10596def49bbe034cf869f2020e44e60f08a2edd01f5c58aa32a
MD5 94336a280544159062f15a3768412b29
BLAKE2b-256 04d0694607633d629c9c7e7fb6fdb24ac7302afd80b3ee3fa0f4ddb14ef7c3ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.1-cp310-cp310-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 305.3 kB
  • Tags: CPython 3.10, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6c9ab0b259d066901976a664f234027d46bb460525ae30592d0d6d78d8098aec
MD5 0e91f622a0a0fb108648363987b51dbb
BLAKE2b-256 9cf7afd37eb4ffbb2d5e1311896d32f4b2aa2b2eedd1d753cc93adb8c4e417c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.1-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 201.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 fb2be2f9597471f774a42f01cf80ddce9838d5ccb32b6dd921fcf910d5f8961e
MD5 34bb140467a714de77c2a5fec2e292c1
BLAKE2b-256 9d9dd22244751368b00c696dc2f814e2c6e8d53f3d5db89c56ccf409fd35d8a4

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db8e11f0ee3a8c993c526b759d34bab6967f1c9ab4e32b4ce0fb00f945965c8c
MD5 dfe097220d30b6d82ef3886816d8afa6
BLAKE2b-256 c52713c5b806342d0969548e8cba763db77a9cfdc3c322436e29ff3f857332bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastpdb-1.0.1-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 305.5 kB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e02aa27413269b34beb1fb01be6db6ecd5f1d0ff490245ab92ee2cd3aaf352bc
MD5 45ba2e6285a033e8a17a07020e41a47f
BLAKE2b-256 b21b21fb459bb91ff8f9fd2885029a66811e4c6b6e7f05db1bff0c480f7f38dd

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.1-cp38-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.0.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 201.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a07c74bd3274f364c26d45be94480a18ed07167a34f7746d7367ff2de1dd1bf
MD5 c2bc0623414fe54d51679d48e939abf4
BLAKE2b-256 d7471881c2c4bb10f9e641ca665a60b21cae17269c82b18a677e98868c7015b5

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.1-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.1-cp38-cp38-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d84c3e25faee2054b2e9c3f044bad8715d9d38f1961801c2717cda37d5579f5
MD5 bd75e44d767c32b9461c90c3142c4379
BLAKE2b-256 4e1b3ad5d4101d76d4d06254146d26d4dd560b3217b95e94de032d184294df7e

See more details on using hashes here.

File details

Details for the file fastpdb-1.0.1-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: fastpdb-1.0.1-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 305.5 kB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for fastpdb-1.0.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 37a6f4a565f537e8e3250e9b9cc3ab4dda33f10abd98379b22e865aedbcdf508
MD5 32f294450dd226a4b41404e565954f91
BLAKE2b-256 96c5d97bd97aff96af27a1a03040bd7283ffbcef43b4502087ec58aaa7fb10c6

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