fastpdb


Namefastpdb JSON
Version 1.3.0 PyPI version JSON
download
home_page
SummaryA high performance drop-in replacement for Biotite's PDBFile.
upload_time2024-01-12 14:52:58
maintainerPatrick Kunzmann
docs_urlNone
authorPatrick Kunzmann, Nick Coish
requires_python>=3.7
license
keywords pdb-files
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/biotite-dev/fastpdb/main/logo.svg
    :width: 300
    :align: center
    :alt: fastpdb


|
|

A high performance drop-in replacement for *Biotite*'s ``PDBFile``
written in *Rust*.

Installation
------------

``fastpdb`` can be installed via

.. code-block:: console

    $ pip install fastpdb

Usage
-----

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

.. code-block:: python

    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``.

.. image:: https://raw.githubusercontent.com/biotite-dev/fastpdb/main/benchmark.svg
    :width: 800
    :align: center


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fastpdb",
    "maintainer": "Patrick Kunzmann",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "pdb-files",
    "author": "Patrick Kunzmann, Nick Coish",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/96/d5/9f246a61090ecf8d01fe1e638c73f32a8fd4747ca6e177bd16a473f61b1c/fastpdb-1.3.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/biotite-dev/fastpdb/main/logo.svg\n    :width: 300\n    :align: center\n    :alt: fastpdb\n\n\n|\n|\n\nA high performance drop-in replacement for *Biotite*'s ``PDBFile``\nwritten in *Rust*.\n\nInstallation\n------------\n\n``fastpdb`` can be installed via\n\n.. code-block:: console\n\n    $ pip install fastpdb\n\nUsage\n-----\n\nYou can simply replace ``biotite.structure.io.pdb.PDBFile`` by\n``fastpdb.PDBFile``. The methods and their parameters are the same.\n\n.. code-block:: python\n\n    import fastpdb\n\n    in_file = fastpdb.PDBFile.read(\"path/to/file.pdb\")\n    atom_array = in_file.get_structure(model=1)\n\n    out_file = fastpdb.PDBFile()\n    out_file.set_structure(atom_array)\n    out_file.write(\"path/to/another_file.pdb\")\n\nNote that ``fastpdb`` does not yet support the *hybrid-36* PDB format.\n\n\nPerformance\n-----------\n\n``fastpdb`` is multiple times faster than ``biotite``.\n\n.. image:: https://raw.githubusercontent.com/biotite-dev/fastpdb/main/benchmark.svg\n    :width: 800\n    :align: center\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A high performance drop-in replacement for Biotite's PDBFile.",
    "version": "1.3.0",
    "project_urls": {
        "homepage": "https://github.com/biotite-dev/fastpdb",
        "repository": "https://github.com/biotite-dev/fastpdb"
    },
    "split_keywords": [
        "pdb-files"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea23069190fed9f94d3bb3afce42b134e92d40dfa0d518abd576bc7aa6f00bd1",
                "md5": "224175850532b3c71b68a8aa026e60de",
                "sha256": "5806ccef3ad0798d2f01f451b854ce1ba3766cae6f906fcef6d14cbe91028203"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp310-cp310-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "224175850532b3c71b68a8aa026e60de",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 341020,
            "upload_time": "2024-01-12T14:52:43",
            "upload_time_iso_8601": "2024-01-12T14:52:43.023196Z",
            "url": "https://files.pythonhosted.org/packages/ea/23/069190fed9f94d3bb3afce42b134e92d40dfa0d518abd576bc7aa6f00bd1/fastpdb-1.3.0-cp310-cp310-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e4d0aa1f47bd189be67f93a40cf346f8aa134a334dad6344321cb195ae4c961",
                "md5": "da43517da2f053686f884115ed4eb9d1",
                "sha256": "b773dbe24cb9d0b1c13f5bf2fca42ab73bd995971d0707bd27fa191571cea0b9"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "da43517da2f053686f884115ed4eb9d1",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1193925,
            "upload_time": "2024-01-12T14:52:45",
            "upload_time_iso_8601": "2024-01-12T14:52:45.085511Z",
            "url": "https://files.pythonhosted.org/packages/6e/4d/0aa1f47bd189be67f93a40cf346f8aa134a334dad6344321cb195ae4c961/fastpdb-1.3.0-cp310-cp310-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f42d862b9342a3e57874518b97c2c8d5929ebfb0a1307043868ea407934f15c0",
                "md5": "e253d9e0bb9553b3914c177a42144bbe",
                "sha256": "cca6c3689231b7b51fab991d5d70e61806f1b08f9511a78e73a57028c9d5aff2"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp310-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e253d9e0bb9553b3914c177a42144bbe",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 218784,
            "upload_time": "2024-01-12T14:52:47",
            "upload_time_iso_8601": "2024-01-12T14:52:47.656548Z",
            "url": "https://files.pythonhosted.org/packages/f4/2d/862b9342a3e57874518b97c2c8d5929ebfb0a1307043868ea407934f15c0/fastpdb-1.3.0-cp310-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7c6676053ced132be40b2cfcfb39520a7a01002215ba27d736be940dfdea3f3",
                "md5": "49273f3d1e8c8325cb7eb4fb3dc8c596",
                "sha256": "c0575587fc4d1917195062c6b5ad4056cf51ca6b15fb7cad6d6c69e0c72d3b62"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "49273f3d1e8c8325cb7eb4fb3dc8c596",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 341085,
            "upload_time": "2024-01-12T14:52:49",
            "upload_time_iso_8601": "2024-01-12T14:52:49.182767Z",
            "url": "https://files.pythonhosted.org/packages/a7/c6/676053ced132be40b2cfcfb39520a7a01002215ba27d736be940dfdea3f3/fastpdb-1.3.0-cp311-cp311-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6098e57478e6b479ad1f54e082c28fa07e6f00ed1a0ef7e28c71bc4ff7aecf45",
                "md5": "736d3699e2531cfa2dc9fb0b24251981",
                "sha256": "0a363af556a00038f28aee9655642cbbc1d7c2d4d9d5ef92567ec01429b678fe"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "736d3699e2531cfa2dc9fb0b24251981",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1193946,
            "upload_time": "2024-01-12T14:52:50",
            "upload_time_iso_8601": "2024-01-12T14:52:50.442651Z",
            "url": "https://files.pythonhosted.org/packages/60/98/e57478e6b479ad1f54e082c28fa07e6f00ed1a0ef7e28c71bc4ff7aecf45/fastpdb-1.3.0-cp311-cp311-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bceb0c73ade98b0d6c5089af7d422412b9eddc9c6426e16a8018ffac10df88f",
                "md5": "253c74e262de18fd011e613b1c06cdc0",
                "sha256": "aba5e348ebf429c51965a13640198964f7ed7b6b1aac7103d48e39bf11276952"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp311-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "253c74e262de18fd011e613b1c06cdc0",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 218748,
            "upload_time": "2024-01-12T14:52:52",
            "upload_time_iso_8601": "2024-01-12T14:52:52.059994Z",
            "url": "https://files.pythonhosted.org/packages/3b/ce/b0c73ade98b0d6c5089af7d422412b9eddc9c6426e16a8018ffac10df88f/fastpdb-1.3.0-cp311-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0346c459aa74e912bd9f17176175ac4bef5f443e055aaab0427019509b86acc9",
                "md5": "a2f6f26d2087ef71501732bdc3d54d5b",
                "sha256": "723f9c87a55cecec99e1c8404645750ebae14efd0898a7e926cf6d8db9617398"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a2f6f26d2087ef71501732bdc3d54d5b",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 337098,
            "upload_time": "2024-01-12T14:52:53",
            "upload_time_iso_8601": "2024-01-12T14:52:53.764073Z",
            "url": "https://files.pythonhosted.org/packages/03/46/c459aa74e912bd9f17176175ac4bef5f443e055aaab0427019509b86acc9/fastpdb-1.3.0-cp312-cp312-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c18d6fd71952e1afe1e3cdb2b552adf7925eeed3b3dce63e7a0ffaa3d9e4ad4",
                "md5": "229287eb9dd4f43eb4c390f0941ec1c1",
                "sha256": "c63a483caab8b75bc87dcb4a140a476aaed28b9fe06e47dc48bcfd16f7a86335"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "229287eb9dd4f43eb4c390f0941ec1c1",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 1192146,
            "upload_time": "2024-01-12T14:52:55",
            "upload_time_iso_8601": "2024-01-12T14:52:55.557333Z",
            "url": "https://files.pythonhosted.org/packages/5c/18/d6fd71952e1afe1e3cdb2b552adf7925eeed3b3dce63e7a0ffaa3d9e4ad4/fastpdb-1.3.0-cp312-cp312-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89315c05e2fcf921d4a52d81fb7fea62c7fd8cf308d8bd94c70e176b6aeaad78",
                "md5": "2e587213d2023ecb3f1008625a55d6c3",
                "sha256": "d4425d535d25e096e72254d8ef4d7f00945a7774bd0a0ad7b935230d78ea4c28"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0-cp312-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "2e587213d2023ecb3f1008625a55d6c3",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.7",
            "size": 216932,
            "upload_time": "2024-01-12T14:52:56",
            "upload_time_iso_8601": "2024-01-12T14:52:56.777489Z",
            "url": "https://files.pythonhosted.org/packages/89/31/5c05e2fcf921d4a52d81fb7fea62c7fd8cf308d8bd94c70e176b6aeaad78/fastpdb-1.3.0-cp312-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96d59f246a61090ecf8d01fe1e638c73f32a8fd4747ca6e177bd16a473f61b1c",
                "md5": "f425ad700f7df659f0075296156d7c83",
                "sha256": "559b65a9ef6dc709afe80f964ced137dbab6501f03262d5a7c25f7464d53ed6e"
            },
            "downloads": -1,
            "filename": "fastpdb-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f425ad700f7df659f0075296156d7c83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2914337,
            "upload_time": "2024-01-12T14:52:58",
            "upload_time_iso_8601": "2024-01-12T14:52:58.542297Z",
            "url": "https://files.pythonhosted.org/packages/96/d5/9f246a61090ecf8d01fe1e638c73f32a8fd4747ca6e177bd16a473f61b1c/fastpdb-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-12 14:52:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "biotite-dev",
    "github_project": "fastpdb",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fastpdb"
}
        
Elapsed time: 0.45895s