===========================================
pytng - A python library to read TNG files!
===========================================
.. image:: https://github.com/MDAnalysis/pytng/workflows/build/badge.svg
:target: https://github.com/MDAnalysis/pytng/actions
.. image:: https://github.com/MDAnalysis/pytng/workflows/docs/badge.svg
:target: https://github.com/MDAnalysis/pytng/actions
.. image:: https://badge.fury.io/py/pytng.svg
:target: https://badge.fury.io/py/pytng
.. image:: https://codecov.io/gh/MDAnalysis/pytng/branch/master/graph/badge.svg
:target: https://codecov.io/gh/MDAnalysis/pytng
.. image:: https://zenodo.org/badge/92180386.svg
:target: https://zenodo.org/badge/latestdoi/92180386
This package provides the ``TNGFileIterator`` object to allow simple Pythonic
access to data contained within TNG files.
.. code-block:: python
import pytng
import numpy as np
with pytng.TNGFileIterator('traj.tng', 'r') as tng:
positions = np.empty(shape=(tng.n_atoms,3), dtype=np.float32)
for ts in tng:
time = ts.get_time()
positions = ts.get_positions(positions)
This package contains Python bindings to libtng_ for TNG file format[1_] [2_].
This is used by molecular simulation programs such as Gromacs_ for storing the
topology and results from molecular dynamics simulations.
Warning
=======
This package is under active development. The API is liable to change
between release versions.
.. _libtng: https://gitlab.com/gromacs/tng
.. _1: http://link.springer.com/article/10.1007%2Fs00894-010-0948-5
.. _2: http://onlinelibrary.wiley.com/doi/10.1002/jcc.23495/abstract
.. _Gromacs: http://manual.gromacs.org/
Installation
============
To install using pip, simply run
.. code-block:: sh
pip install pytng
To install the latest development version from source, run
.. code-block:: sh
git clone git@github.com:MDAnalysis/pytng.git
cd pytng
python setup.py install
Getting help
============
For help using this library, please drop by the `GitHub issue tracker`_.
.. _GitHub issue tracker: https://github.com/MDAnalysis/pytng/issues
Raw data
{
"_id": null,
"home_page": "",
"name": "pytng",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "MDAnalysis Core Developers <mdanalysis@numfocus.org>",
"keywords": "",
"author": "Max Linke, Richard J Gowers, Hugo MacDermott-Opeskin",
"author_email": "\"Max Linke, Richard J Gowers, Hugo MacDermott-Opeskin\" <max_linke@gmx.de>",
"download_url": "https://files.pythonhosted.org/packages/c5/1d/29c2a867825dc4dad711b029f7ea5f09b08b97b3dc740e9affc1341c9dcd/pytng-0.3.1.tar.gz",
"platform": null,
"description": "===========================================\npytng - A python library to read TNG files!\n===========================================\n\n.. image:: https://github.com/MDAnalysis/pytng/workflows/build/badge.svg\n :target: https://github.com/MDAnalysis/pytng/actions\n.. image:: https://github.com/MDAnalysis/pytng/workflows/docs/badge.svg\n :target: https://github.com/MDAnalysis/pytng/actions\n.. image:: https://badge.fury.io/py/pytng.svg\n :target: https://badge.fury.io/py/pytng\n.. image:: https://codecov.io/gh/MDAnalysis/pytng/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/MDAnalysis/pytng\n.. image:: https://zenodo.org/badge/92180386.svg\n :target: https://zenodo.org/badge/latestdoi/92180386\n\n\nThis package provides the ``TNGFileIterator`` object to allow simple Pythonic\naccess to data contained within TNG files.\n\n.. code-block:: python\n\n import pytng\n import numpy as np\n\n with pytng.TNGFileIterator('traj.tng', 'r') as tng:\n\n positions = np.empty(shape=(tng.n_atoms,3), dtype=np.float32)\n\n for ts in tng:\n time = ts.get_time()\n positions = ts.get_positions(positions)\n\nThis package contains Python bindings to libtng_ for TNG file format[1_] [2_].\nThis is used by molecular simulation programs such as Gromacs_ for storing the\ntopology and results from molecular dynamics simulations.\n\nWarning\n=======\n\nThis package is under active development. The API is liable to change\nbetween release versions.\n\n.. _libtng: https://gitlab.com/gromacs/tng\n.. _1: http://link.springer.com/article/10.1007%2Fs00894-010-0948-5\n.. _2: http://onlinelibrary.wiley.com/doi/10.1002/jcc.23495/abstract\n.. _Gromacs: http://manual.gromacs.org/\n\n\nInstallation\n============\n\nTo install using pip, simply run\n\n.. code-block:: sh\n\n pip install pytng\n\nTo install the latest development version from source, run\n\n.. code-block:: sh\n\n git clone git@github.com:MDAnalysis/pytng.git\n cd pytng\n python setup.py install\n\n\nGetting help\n============\n\nFor help using this library, please drop by the `GitHub issue tracker`_.\n\n.. _GitHub issue tracker: https://github.com/MDAnalysis/pytng/issues\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Minimal Cython wrapper of the TNG trajectory library",
"version": "0.3.1",
"project_urls": {
"Homepage": "http://mdanalysis.org/pytng"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "140bbc008b777de2bbfc7690c954e917d3ae97d865fdc9edfefee5c83271fd42",
"md5": "4b69dc028a2f36e578639dc23b3c4fae",
"sha256": "610c5266ca628a8d8761af071c48c3460894c7df9d853cea58fd8d1db71fef06"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "4b69dc028a2f36e578639dc23b3c4fae",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 686056,
"upload_time": "2023-10-28T05:06:27",
"upload_time_iso_8601": "2023-10-28T05:06:27.882930Z",
"url": "https://files.pythonhosted.org/packages/14/0b/bc008b777de2bbfc7690c954e917d3ae97d865fdc9edfefee5c83271fd42/pytng-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "009f39f182c52eac443c4234748096c7ff6715b1faa7987954db616f48207098",
"md5": "37c775df6a612ab46b94a14e6129fdea",
"sha256": "9b9acb20e88e50c3d3ab7f1133193160c45e8946f977603a386fe2ceadfebe63"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "37c775df6a612ab46b94a14e6129fdea",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 1717926,
"upload_time": "2023-10-28T05:06:29",
"upload_time_iso_8601": "2023-10-28T05:06:29.867168Z",
"url": "https://files.pythonhosted.org/packages/00/9f/39f182c52eac443c4234748096c7ff6715b1faa7987954db616f48207098/pytng-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2406c18380ed267cb709ffb15570ca924ad3c771353104c6ad771d95a39f722f",
"md5": "6284ab88d597d95199aaf50ccc2ef847",
"sha256": "3385845fab43927d57818bbb9dc97444631c03026ca6f88ca34eb87a6e0773fc"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "6284ab88d597d95199aaf50ccc2ef847",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 699994,
"upload_time": "2023-10-28T05:06:31",
"upload_time_iso_8601": "2023-10-28T05:06:31.669996Z",
"url": "https://files.pythonhosted.org/packages/24/06/c18380ed267cb709ffb15570ca924ad3c771353104c6ad771d95a39f722f/pytng-0.3.1-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d5a843b667502a0fb93ecadf669af96e758471ac0436fd7389c4894f773a5820",
"md5": "53521d46abfa8a3c446f677af60468fa",
"sha256": "00270f2710b07665fe99c24de3becbf10438f68a506ca4088a511118d4b0acc8"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "53521d46abfa8a3c446f677af60468fa",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 679078,
"upload_time": "2023-10-28T05:06:33",
"upload_time_iso_8601": "2023-10-28T05:06:33.387831Z",
"url": "https://files.pythonhosted.org/packages/d5/a8/43b667502a0fb93ecadf669af96e758471ac0436fd7389c4894f773a5820/pytng-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ef56ce398f4e21afa83e0eda2dab321fd117941ab5c6774618c08f8272a51b33",
"md5": "c0471c7249db9d521e0f2711b6156e1a",
"sha256": "cc5444d8ee7d32a0c3d6bf695279a96021553e8c79cc9233fa2cc44ec99bfd2a"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "c0471c7249db9d521e0f2711b6156e1a",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 1768060,
"upload_time": "2023-10-28T05:06:35",
"upload_time_iso_8601": "2023-10-28T05:06:35.173487Z",
"url": "https://files.pythonhosted.org/packages/ef/56/ce398f4e21afa83e0eda2dab321fd117941ab5c6774618c08f8272a51b33/pytng-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7b04e9387a1909d7311e338fd6d586f92c4c1216281aa95c8db797d2df74b7db",
"md5": "7a065ff55e52f0fd893722c5d192a9e0",
"sha256": "d0bbad5310e752cbe6c99849505ec227e88c7953aae34fc15d79b4a6a3f7d2f9"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "7a065ff55e52f0fd893722c5d192a9e0",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 698765,
"upload_time": "2023-10-28T05:06:37",
"upload_time_iso_8601": "2023-10-28T05:06:37.127194Z",
"url": "https://files.pythonhosted.org/packages/7b/04/e9387a1909d7311e338fd6d586f92c4c1216281aa95c8db797d2df74b7db/pytng-0.3.1-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ddf4b71d1d273c898702e497233b8d12b006e2c3da4295ff5f81364dcf66d429",
"md5": "015bd53480082f052842e715b0a95817",
"sha256": "8ebd73bb53931a4ad036f513375504a173fdeec54efc5067b9e12420b08f3d3c"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp312-cp312-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "015bd53480082f052842e715b0a95817",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 666865,
"upload_time": "2023-10-28T05:06:38",
"upload_time_iso_8601": "2023-10-28T05:06:38.456777Z",
"url": "https://files.pythonhosted.org/packages/dd/f4/b71d1d273c898702e497233b8d12b006e2c3da4295ff5f81364dcf66d429/pytng-0.3.1-cp312-cp312-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dcfaf69fc45c76df5c2f59f3768f5c0b84b903bddc973e98d614dbdc57740574",
"md5": "eb0accf26d2151e7fba6ef24db793239",
"sha256": "af9f8b771faa52b5b330255c12c59f78f9514e5d2269ad82306fef820aa581bc"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "eb0accf26d2151e7fba6ef24db793239",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1728408,
"upload_time": "2023-10-28T05:06:39",
"upload_time_iso_8601": "2023-10-28T05:06:39.961497Z",
"url": "https://files.pythonhosted.org/packages/dc/fa/f69fc45c76df5c2f59f3768f5c0b84b903bddc973e98d614dbdc57740574/pytng-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f9de3916b45f00f071f0974360fad2263760fb29fda97c551f31c8dc6b652e12",
"md5": "d4177f59b0323328c0dbd73c0c6ad7c1",
"sha256": "2fc13d7e816fbb87682fd6587b2790b340f8fadc2027013feb8f52b8b5dcb654"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "d4177f59b0323328c0dbd73c0c6ad7c1",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 693578,
"upload_time": "2023-10-28T05:06:41",
"upload_time_iso_8601": "2023-10-28T05:06:41.377177Z",
"url": "https://files.pythonhosted.org/packages/f9/de/3916b45f00f071f0974360fad2263760fb29fda97c551f31c8dc6b652e12/pytng-0.3.1-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0c29e9d138bb204f3f0483bcf74e205d71c5b4af9e7e612682c6b9dd1353d89e",
"md5": "3da3a21701c6e27905a53ca5fd06ccfd",
"sha256": "f5bb0cdc86f17af627401b635dc77581cc782f9c121154648bfbf76939e092b0"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "3da3a21701c6e27905a53ca5fd06ccfd",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 684008,
"upload_time": "2023-10-28T05:06:43",
"upload_time_iso_8601": "2023-10-28T05:06:43.131971Z",
"url": "https://files.pythonhosted.org/packages/0c/29/e9d138bb204f3f0483bcf74e205d71c5b4af9e7e612682c6b9dd1353d89e/pytng-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d1aee5d732e7ea94e7fd0c52677014aeeca47691e6896dc7f6fa645580a6d61b",
"md5": "ee4b6607399a5d38022ca4ac42cc6cb5",
"sha256": "28a07b47bcbcec26386d06b09d27c91765087849b59cbdc7d0142a1edb204fd5"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "ee4b6607399a5d38022ca4ac42cc6cb5",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 1727300,
"upload_time": "2023-10-28T05:06:44",
"upload_time_iso_8601": "2023-10-28T05:06:44.796766Z",
"url": "https://files.pythonhosted.org/packages/d1/ae/e5d732e7ea94e7fd0c52677014aeeca47691e6896dc7f6fa645580a6d61b/pytng-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cf1afa8966ac89bfe392c0933cc67027900c9d15f3a25260b24377444065e520",
"md5": "137f8af1464a2e1fd261e6ff1250d6d6",
"sha256": "a1550fe1c4e06954bb07ff03ce44e6a0c379af9994e7c46b283f51557bfd4e93"
},
"downloads": -1,
"filename": "pytng-0.3.1-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "137f8af1464a2e1fd261e6ff1250d6d6",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 702146,
"upload_time": "2023-10-28T05:06:46",
"upload_time_iso_8601": "2023-10-28T05:06:46.626911Z",
"url": "https://files.pythonhosted.org/packages/cf/1a/fa8966ac89bfe392c0933cc67027900c9d15f3a25260b24377444065e520/pytng-0.3.1-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c51d29c2a867825dc4dad711b029f7ea5f09b08b97b3dc740e9affc1341c9dcd",
"md5": "f95660b438bad4bb9cbabad474ec05a3",
"sha256": "ce6495a42ed57c59874ea1168197e5b74d66b437bde5ed36b1b9047759675ad5"
},
"downloads": -1,
"filename": "pytng-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "f95660b438bad4bb9cbabad474ec05a3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 10609219,
"upload_time": "2023-10-28T05:06:48",
"upload_time_iso_8601": "2023-10-28T05:06:48.529446Z",
"url": "https://files.pythonhosted.org/packages/c5/1d/29c2a867825dc4dad711b029f7ea5f09b08b97b3dc740e9affc1341c9dcd/pytng-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-28 05:06:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pytng"
}