===========================================
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": null,
"name": "pytng",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "MDAnalysis Core Developers <mdanalysis@numfocus.org>",
"keywords": null,
"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/25/b4/9f808502e38ca310ef5516508d0db513c1a3563b754d4eefd46efec10cce/pytng-0.3.4.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": null,
"summary": "Minimal Cython wrapper of the TNG trajectory library",
"version": "0.3.4",
"project_urls": {
"Homepage": "http://mdanalysis.org/pytng"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1d7ea1096a7eeaba483846651b6f210a57f70e76654739a9247c1e78a5777321",
"md5": "5b5e4744df40e181c0c6910dbf24775e",
"sha256": "719d98b03c44a775ef7e7e296bfb00b88b780bd541b7d45a3c7af3269e393ab3"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "5b5e4744df40e181c0c6910dbf24775e",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 652240,
"upload_time": "2025-10-14T04:28:19",
"upload_time_iso_8601": "2025-10-14T04:28:19.529557Z",
"url": "https://files.pythonhosted.org/packages/1d/7e/a1096a7eeaba483846651b6f210a57f70e76654739a9247c1e78a5777321/pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4faca2a385b984078564b4dfdc3c7dafd3e64a5351e8711734e36e0ac0c1f469",
"md5": "9a5e4e001cbbe5889e284522a112c5a8",
"sha256": "67bb11b2855625703516d888509b72fdebaed253a3a6fd5680a1dc98b5f44ede"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "9a5e4e001cbbe5889e284522a112c5a8",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 622282,
"upload_time": "2025-10-14T04:28:21",
"upload_time_iso_8601": "2025-10-14T04:28:21.850339Z",
"url": "https://files.pythonhosted.org/packages/4f/ac/a2a385b984078564b4dfdc3c7dafd3e64a5351e8711734e36e0ac0c1f469/pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5d0278109f186dcb42140c87f4386fe998671eee93242a7091691013369bb153",
"md5": "597c33ab76a9828fa7ebe302be2e6e6b",
"sha256": "f36dcad017e6000b3218b846a6e117df5e06f0c2d7ec6a941caa25d48fdfd73d"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "597c33ab76a9828fa7ebe302be2e6e6b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 1886258,
"upload_time": "2025-10-14T04:28:23",
"upload_time_iso_8601": "2025-10-14T04:28:23.513781Z",
"url": "https://files.pythonhosted.org/packages/5d/02/78109f186dcb42140c87f4386fe998671eee93242a7091691013369bb153/pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "75c687fd12967688ba0178b32dd29696615e861705615b98fa912a0da4d958ec",
"md5": "e712917f782dcc74312f3187d9eeb9d7",
"sha256": "109c0e0da06fd1effbc57d95fcef20fea5e713f35efaa61711c7ae033990de5e"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "e712917f782dcc74312f3187d9eeb9d7",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 840610,
"upload_time": "2025-10-14T04:28:24",
"upload_time_iso_8601": "2025-10-14T04:28:24.866142Z",
"url": "https://files.pythonhosted.org/packages/75/c6/87fd12967688ba0178b32dd29696615e861705615b98fa912a0da4d958ec/pytng-0.3.4-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8d5bab260c0a0d6edbe18a0b460e30527013a2f71e45741bc47fdc7f621f785e",
"md5": "fb490974819ad6d87c4aa6dcee3c15c4",
"sha256": "5ea3fb667ab3ac3f85d0e8e14546b8fbcfeee97a91ee788fa3cf812868abadd1"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl",
"has_sig": false,
"md5_digest": "fb490974819ad6d87c4aa6dcee3c15c4",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 647125,
"upload_time": "2025-10-14T04:28:26",
"upload_time_iso_8601": "2025-10-14T04:28:26.162570Z",
"url": "https://files.pythonhosted.org/packages/8d/5b/ab260c0a0d6edbe18a0b460e30527013a2f71e45741bc47fdc7f621f785e/pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "abb646625f0c4f5af1ede50b8500d345a38e00cdcf7afe664f60d59d0fc3c778",
"md5": "41b1e19e2112098a353c7185d49365b9",
"sha256": "fd1b56f9df7fe1ee67a08ccfa4f7d723a375be9ddfc212f25db305efb4610156"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "41b1e19e2112098a353c7185d49365b9",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 619072,
"upload_time": "2025-10-14T04:28:27",
"upload_time_iso_8601": "2025-10-14T04:28:27.649628Z",
"url": "https://files.pythonhosted.org/packages/ab/b6/46625f0c4f5af1ede50b8500d345a38e00cdcf7afe664f60d59d0fc3c778/pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "265be34f231158857f5cfc400c757e6c7fdb7164e89d2dc202c41839ef4c0983",
"md5": "20e7be9850c0fd9f67ec8ce9889f651e",
"sha256": "50552c4dbb9689cac0268ed650fd3fbf69c012ca42ba809274c08ee5f563e0f4"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "20e7be9850c0fd9f67ec8ce9889f651e",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1865880,
"upload_time": "2025-10-14T04:28:29",
"upload_time_iso_8601": "2025-10-14T04:28:29.311293Z",
"url": "https://files.pythonhosted.org/packages/26/5b/e34f231158857f5cfc400c757e6c7fdb7164e89d2dc202c41839ef4c0983/pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "68fbd6cf73c987d53e00dee6180c0aa8934a113cf2eef605786d1e36cb831cd5",
"md5": "a20006d2fb61825a00c8fec3be95f2a1",
"sha256": "ad320c35247a1407d531b9f8a7dcb2b798db447b39685acb5ea1724d025da9a2"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "a20006d2fb61825a00c8fec3be95f2a1",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 837799,
"upload_time": "2025-10-14T04:28:31",
"upload_time_iso_8601": "2025-10-14T04:28:31.032034Z",
"url": "https://files.pythonhosted.org/packages/68/fb/d6cf73c987d53e00dee6180c0aa8934a113cf2eef605786d1e36cb831cd5/pytng-0.3.4-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b1c50b996d38783e383214378d41e0bcce3eb17cf407e2be397643311c2d8ac4",
"md5": "24da2f2752386af0eb5715c71ccc1c44",
"sha256": "0bb4a42c0e0f54a1632e569a79e4561fa87da6f930e58e2a26512286925f9720"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl",
"has_sig": false,
"md5_digest": "24da2f2752386af0eb5715c71ccc1c44",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.9",
"size": 645662,
"upload_time": "2025-10-14T04:28:32",
"upload_time_iso_8601": "2025-10-14T04:28:32.248071Z",
"url": "https://files.pythonhosted.org/packages/b1/c5/0b996d38783e383214378d41e0bcce3eb17cf407e2be397643311c2d8ac4/pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f29fc20817221c499e37bdf16931b7005c783e2962e2e22e5a34c15f79b61615",
"md5": "abc86878fc703fe0344dca091355df41",
"sha256": "1fa22c2140859a7865ff66133017a1bfea24be5f96f313fdf98d04812fbb5ae3"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "abc86878fc703fe0344dca091355df41",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.9",
"size": 617896,
"upload_time": "2025-10-14T04:28:33",
"upload_time_iso_8601": "2025-10-14T04:28:33.842877Z",
"url": "https://files.pythonhosted.org/packages/f2/9f/c20817221c499e37bdf16931b7005c783e2962e2e22e5a34c15f79b61615/pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "999570bf1ebe4444288973fab11973c7e7a2f24d36f5d9bbd812c27c28220693",
"md5": "40134c99ec30ae304616e687537129a5",
"sha256": "55aa2736d524cab7cc2fd751f6f347e2dff0f900c273d9c6e85b5e84d4bfd05a"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "40134c99ec30ae304616e687537129a5",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.9",
"size": 1862545,
"upload_time": "2025-10-14T04:28:36",
"upload_time_iso_8601": "2025-10-14T04:28:36.368878Z",
"url": "https://files.pythonhosted.org/packages/99/95/70bf1ebe4444288973fab11973c7e7a2f24d36f5d9bbd812c27c28220693/pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "99ab70025f593d475d229600b7d626925057fc73cfa784242ba5030bc719929b",
"md5": "674a792a6ef46509c1daa116dcf013bf",
"sha256": "0c42d78d1661e071e9d69a4f68c119c0722c9b0fbd7914e396212c21e0ba46c1"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp313-cp313-win_amd64.whl",
"has_sig": false,
"md5_digest": "674a792a6ef46509c1daa116dcf013bf",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.9",
"size": 837741,
"upload_time": "2025-10-14T04:28:37",
"upload_time_iso_8601": "2025-10-14T04:28:37.820317Z",
"url": "https://files.pythonhosted.org/packages/99/ab/70025f593d475d229600b7d626925057fc73cfa784242ba5030bc719929b/pytng-0.3.4-cp313-cp313-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "808d5222bd0c1c3596f76d9f4a44b736be53fc5fdcd943108debdbf45f021ad9",
"md5": "fead6ff62de910bb6f5b7a50b9c8c35f",
"sha256": "67ad4a080d6f6fde5cb5a710b60cd9a19c58ae1e279cde7a81c807852dd5ddf4"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl",
"has_sig": false,
"md5_digest": "fead6ff62de910bb6f5b7a50b9c8c35f",
"packagetype": "bdist_wheel",
"python_version": "cp314",
"requires_python": ">=3.9",
"size": 646229,
"upload_time": "2025-10-14T04:28:39",
"upload_time_iso_8601": "2025-10-14T04:28:39.165635Z",
"url": "https://files.pythonhosted.org/packages/80/8d/5222bd0c1c3596f76d9f4a44b736be53fc5fdcd943108debdbf45f021ad9/pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3e74f7c415f35dff03026fe4ab5fca92b2ec871e9524151f8b465fbaa0785fcf",
"md5": "4bdf2bc34816f6046dc9850f6ec538e6",
"sha256": "69d09c639cdfaf0f40b2a47a094cad2eeb56c031f4875b5f381897ee620ba28a"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "4bdf2bc34816f6046dc9850f6ec538e6",
"packagetype": "bdist_wheel",
"python_version": "cp314",
"requires_python": ">=3.9",
"size": 618578,
"upload_time": "2025-10-14T04:28:40",
"upload_time_iso_8601": "2025-10-14T04:28:40.567104Z",
"url": "https://files.pythonhosted.org/packages/3e/74/f7c415f35dff03026fe4ab5fca92b2ec871e9524151f8b465fbaa0785fcf/pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6bc30d36df0728eb311c9b6f248cc6fc5c41c8e913b98b9ba3c8f09b4ddf8d7e",
"md5": "35662499ae96815845caeb273dd43d2f",
"sha256": "3f105acd0612bc403bdcb788515646806cc6d51bfe5dd361e182f93b24c22f1f"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "35662499ae96815845caeb273dd43d2f",
"packagetype": "bdist_wheel",
"python_version": "cp314",
"requires_python": ">=3.9",
"size": 1850106,
"upload_time": "2025-10-14T04:28:41",
"upload_time_iso_8601": "2025-10-14T04:28:41.871239Z",
"url": "https://files.pythonhosted.org/packages/6b/c3/0d36df0728eb311c9b6f248cc6fc5c41c8e913b98b9ba3c8f09b4ddf8d7e/pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2dde766e063477f87c84f5eaa2c1b5675ae4463485fc94083f9241c417a05cb5",
"md5": "1905bf9f8331d13a4a76de869e768c3b",
"sha256": "53f43f9c2d8aae7dffe3480f2e18ac2131fe2d08c8665e6a880d9357e8af60ea"
},
"downloads": -1,
"filename": "pytng-0.3.4-cp314-cp314-win_amd64.whl",
"has_sig": false,
"md5_digest": "1905bf9f8331d13a4a76de869e768c3b",
"packagetype": "bdist_wheel",
"python_version": "cp314",
"requires_python": ">=3.9",
"size": 840630,
"upload_time": "2025-10-14T04:28:43",
"upload_time_iso_8601": "2025-10-14T04:28:43.577934Z",
"url": "https://files.pythonhosted.org/packages/2d/de/766e063477f87c84f5eaa2c1b5675ae4463485fc94083f9241c417a05cb5/pytng-0.3.4-cp314-cp314-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "25b49f808502e38ca310ef5516508d0db513c1a3563b754d4eefd46efec10cce",
"md5": "d061bf228758bcddae6b70f00b3e37c4",
"sha256": "8c7055aaa41dd71c46fe273e45151dae43a1cb359b78a274f311d8c17fcd596d"
},
"downloads": -1,
"filename": "pytng-0.3.4.tar.gz",
"has_sig": false,
"md5_digest": "d061bf228758bcddae6b70f00b3e37c4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 10609020,
"upload_time": "2025-10-14T04:28:45",
"upload_time_iso_8601": "2025-10-14T04:28:45.006952Z",
"url": "https://files.pythonhosted.org/packages/25/b4/9f808502e38ca310ef5516508d0db513c1a3563b754d4eefd46efec10cce/pytng-0.3.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-14 04:28:45",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pytng"
}