A high performance drop-in replacement for Biotite's PDBFile.
Project description
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.
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
Built Distributions
File details
Details for the file fastpdb-1.3.1.tar.gz
.
File metadata
- Download URL: fastpdb-1.3.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd7c44d498dd84474b995cb6a6d1aa3c97500781921cb2695f1d2aebe86abb65 |
|
MD5 | 07e175755652e97e9774342c71d2581a |
|
BLAKE2b-256 | 90610d4d355944c19cb64a3fb7ec763c3c1823055d4cc374c26adaeb03bd4c75 |
File details
Details for the file fastpdb-1.3.1-cp312-none-win_amd64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp312-none-win_amd64.whl
- Upload date:
- Size: 221.1 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e95ef8c74b3985b5d088cacd748d0766df671c8973a36585e7d86fd183f090 |
|
MD5 | 0aa6fd6659433f9ecf8613743e57c4d6 |
|
BLAKE2b-256 | 1af3a775bad4eb0bd4974dbebb7901c1764658881eeb847339ec1be733849b61 |
File details
Details for the file fastpdb-1.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 364.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ec43d8819e2c6b9e14c2a8e36db920638f00b5d73f1d12717da6d99c7e3b8a |
|
MD5 | 381d59f0bd8df2d0242f1b4fd5c9e285 |
|
BLAKE2b-256 | f1ef09e9fca2908d600de9a4b08c28f2819a7ef3dbfbcd4c2e8493bfb0eb2bdd |
File details
Details for the file fastpdb-1.3.1-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 321.0 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2133c3d84f9072f33766cc7d0deedba06e1f92fe5cff8cefd9a9bd89c68f5cb |
|
MD5 | 1e544377598a54c0ddff9d4f60ad12a0 |
|
BLAKE2b-256 | 14bddb7f03a61767d215ace3d412f8384ab44e8d75b1cd75bc1d8e6e9d0fbe7e |
File details
Details for the file fastpdb-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 323.3 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b359770f7b4978377badfde6bc6b80d466f4b08f3d7a1f1fe6d9207e5856b87 |
|
MD5 | 0fc7f439716f9ff91efa8bf9a00c019c |
|
BLAKE2b-256 | 27ec987fd8c94ccf19291c748fbdd630922797c7feaae434d3b51cf59fd3e75c |
File details
Details for the file fastpdb-1.3.1-cp311-none-win_amd64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp311-none-win_amd64.whl
- Upload date:
- Size: 221.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed45bc0012276f64859c1ef5c76605f76dfa665691a921489f70674610323fb |
|
MD5 | dcdc3cc94f09bee14f113ef95d09df82 |
|
BLAKE2b-256 | 07e3b41df10e96d1ab1845dfbf4204b5f3c685167d01055320cf33f78f9daefe |
File details
Details for the file fastpdb-1.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 366.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281f0dc2bc7411f6e28e1cd995feab1580e67105cea1d630fb5d1a7cd39cb064 |
|
MD5 | 4efe569001c366c151ed5e9e652ae5f7 |
|
BLAKE2b-256 | 3a2c0487061795e4778dd015e9a13288f42bd074fe4192f6587140e93f642f8e |
File details
Details for the file fastpdb-1.3.1-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 321.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319d5eda7bb6d71ec2e5089123b49f9d033b024a05acdcafc923be04d598189a |
|
MD5 | 33c9c71e175e227794ebee454d50de04 |
|
BLAKE2b-256 | 251fda5cec2f019a21eb16854ab42b833a3404bf251b42eee676826a203d7fc5 |
File details
Details for the file fastpdb-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 325.5 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d67de0bcc600f50cee06dc610141da2a633ca225205d60c73a4d8f9dcfc43353 |
|
MD5 | 3290929d120588f1f2dd3d27fc1cfc39 |
|
BLAKE2b-256 | ffe3be3b68743930f079776cdfa7d6475278c2160f77d2610fd4e98a1ae1c545 |
File details
Details for the file fastpdb-1.3.1-cp310-none-win_amd64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp310-none-win_amd64.whl
- Upload date:
- Size: 221.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb57c1ba1310b54d83a0409b6657f9e04d1bb41ad569b51aba010c00bac060f6 |
|
MD5 | eea74d8185d40d52969a301b4f10e48f |
|
BLAKE2b-256 | 535958678d2b94800ae921ea3cb85a37dc80056333452a771c0a8a57ffc74e0f |
File details
Details for the file fastpdb-1.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 366.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bba16ecd3a947d847c46c567fc7bcc472b3db2027aa1a9de5511ffd1da7b645 |
|
MD5 | c9b4dae1f9bad550e1be0c2ec4a92c1b |
|
BLAKE2b-256 | 4be46ad98180aa9ba5573e0a443e453084375f49d4224700d1529726c25f24ce |
File details
Details for the file fastpdb-1.3.1-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 321.8 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441a8399fd0e078bcb94221a0521851bcccd41d292a37ce2c2d9fb063d25296d |
|
MD5 | 101784b58b915cd79d45bacc5f4a38d3 |
|
BLAKE2b-256 | 444b8f2fb363fcea422c0f8e074675259f5a0fc173611d8c6a2e920e485780ae |
File details
Details for the file fastpdb-1.3.1-cp310-cp310-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: fastpdb-1.3.1-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 325.4 kB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 417c87ab77bbacad4c118184807ebae5b6777551ce1f403503e4184a71d10849 |
|
MD5 | d31944199f16325f24982a721f2614e7 |
|
BLAKE2b-256 | 1ebdc48e89bc64f0c536bcf752377433ef76bdc4263c8061e6f106e58385bc15 |