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

Uploaded Source

Built Distributions

fastpdb-1.3.0-cp312-none-win_amd64.whl (216.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

fastpdb-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl (337.1 kB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

fastpdb-1.3.0-cp311-none-win_amd64.whl (218.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

fastpdb-1.3.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.3.0-cp311-cp311-macosx_10_12_x86_64.whl (341.1 kB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

fastpdb-1.3.0-cp310-none-win_amd64.whl (218.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

fastpdb-1.3.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.3.0-cp310-cp310-macosx_10_12_x86_64.whl (341.0 kB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: fastpdb-1.3.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.7

File hashes

Hashes for fastpdb-1.3.0.tar.gz
Algorithm Hash digest
SHA256 559b65a9ef6dc709afe80f964ced137dbab6501f03262d5a7c25f7464d53ed6e
MD5 f425ad700f7df659f0075296156d7c83
BLAKE2b-256 96d59f246a61090ecf8d01fe1e638c73f32a8fd4747ca6e177bd16a473f61b1c

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.0-cp312-none-win_amd64.whl.

File metadata

  • Download URL: fastpdb-1.3.0-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 216.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.7

File hashes

Hashes for fastpdb-1.3.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 d4425d535d25e096e72254d8ef4d7f00945a7774bd0a0ad7b935230d78ea4c28
MD5 2e587213d2023ecb3f1008625a55d6c3
BLAKE2b-256 89315c05e2fcf921d4a52d81fb7fea62c7fd8cf308d8bd94c70e176b6aeaad78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c63a483caab8b75bc87dcb4a140a476aaed28b9fe06e47dc48bcfd16f7a86335
MD5 229287eb9dd4f43eb4c390f0941ec1c1
BLAKE2b-256 5c18d6fd71952e1afe1e3cdb2b552adf7925eeed3b3dce63e7a0ffaa3d9e4ad4

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 723f9c87a55cecec99e1c8404645750ebae14efd0898a7e926cf6d8db9617398
MD5 a2f6f26d2087ef71501732bdc3d54d5b
BLAKE2b-256 0346c459aa74e912bd9f17176175ac4bef5f443e055aaab0427019509b86acc9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fastpdb-1.3.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 aba5e348ebf429c51965a13640198964f7ed7b6b1aac7103d48e39bf11276952
MD5 253c74e262de18fd011e613b1c06cdc0
BLAKE2b-256 3bceb0c73ade98b0d6c5089af7d422412b9eddc9c6426e16a8018ffac10df88f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0a363af556a00038f28aee9655642cbbc1d7c2d4d9d5ef92567ec01429b678fe
MD5 736d3699e2531cfa2dc9fb0b24251981
BLAKE2b-256 6098e57478e6b479ad1f54e082c28fa07e6f00ed1a0ef7e28c71bc4ff7aecf45

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c0575587fc4d1917195062c6b5ad4056cf51ca6b15fb7cad6d6c69e0c72d3b62
MD5 49273f3d1e8c8325cb7eb4fb3dc8c596
BLAKE2b-256 a7c6676053ced132be40b2cfcfb39520a7a01002215ba27d736be940dfdea3f3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fastpdb-1.3.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 cca6c3689231b7b51fab991d5d70e61806f1b08f9511a78e73a57028c9d5aff2
MD5 e253d9e0bb9553b3914c177a42144bbe
BLAKE2b-256 f42d862b9342a3e57874518b97c2c8d5929ebfb0a1307043868ea407934f15c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b773dbe24cb9d0b1c13f5bf2fca42ab73bd995971d0707bd27fa191571cea0b9
MD5 da43517da2f053686f884115ed4eb9d1
BLAKE2b-256 6e4d0aa1f47bd189be67f93a40cf346f8aa134a334dad6344321cb195ae4c961

See more details on using hashes here.

File details

Details for the file fastpdb-1.3.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for fastpdb-1.3.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5806ccef3ad0798d2f01f451b854ce1ba3766cae6f906fcef6d14cbe91028203
MD5 224175850532b3c71b68a8aa026e60de
BLAKE2b-256 ea23069190fed9f94d3bb3afce42b134e92d40dfa0d518abd576bc7aa6f00bd1

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