===========================================
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/00/4d/968fd8fd2a06590e1983b1ede9ef9f0d65c7c5944e8661570e346c3de68e/pytng-0.3.3.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.3",
"project_urls": {
"Homepage": "http://mdanalysis.org/pytng"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "78d820b214f9198e60554b14ad741892108363463c8f996f896d271d18ef4597",
"md5": "2347701c90e42d34e183f618cf998e2b",
"sha256": "bc773ea447e9303026246b741c9623f758ea5efaffbe81ef43e09c16d095d4e8"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "2347701c90e42d34e183f618cf998e2b",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 687567,
"upload_time": "2024-06-19T02:30:37",
"upload_time_iso_8601": "2024-06-19T02:30:37.034266Z",
"url": "https://files.pythonhosted.org/packages/78/d8/20b214f9198e60554b14ad741892108363463c8f996f896d271d18ef4597/pytng-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "971e0ead97bac3137a7fd7f49673d8533c9214faba8f9c3f4c9b2cdfc2711be1",
"md5": "6a7f4f542fd24fbf532ae88bc9260cf0",
"sha256": "3e49c7fe621b9ca1d1731d099b06326d1a454bdede179571b067efb41952e438"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "6a7f4f542fd24fbf532ae88bc9260cf0",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 1716966,
"upload_time": "2024-06-19T02:30:41",
"upload_time_iso_8601": "2024-06-19T02:30:41.354852Z",
"url": "https://files.pythonhosted.org/packages/97/1e/0ead97bac3137a7fd7f49673d8533c9214faba8f9c3f4c9b2cdfc2711be1/pytng-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "be0582e248e2046a6f5a5ab73b6d5f162735dd0b4aed9fa6d860c2a6f00e6bfe",
"md5": "1f5952bff6c23e92928b7088f5973575",
"sha256": "711a40e40b574760de313da28193e8a9637e7f6078770edf90f4f82ef2b9e35f"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "1f5952bff6c23e92928b7088f5973575",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 700782,
"upload_time": "2024-06-19T02:30:43",
"upload_time_iso_8601": "2024-06-19T02:30:43.497082Z",
"url": "https://files.pythonhosted.org/packages/be/05/82e248e2046a6f5a5ab73b6d5f162735dd0b4aed9fa6d860c2a6f00e6bfe/pytng-0.3.3-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b0fde254695c7775a414f81af54316bea59498182e77f305200a18e75c93b7a7",
"md5": "1e9f41db351a7c9ad2c52d2cd1a03263",
"sha256": "a8f7e2cfbf15c6f6ac9787cb4a12f7dd74ec8b4518d201a3d644d89b8e65596b"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "1e9f41db351a7c9ad2c52d2cd1a03263",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 680586,
"upload_time": "2024-06-19T02:30:47",
"upload_time_iso_8601": "2024-06-19T02:30:47.737078Z",
"url": "https://files.pythonhosted.org/packages/b0/fd/e254695c7775a414f81af54316bea59498182e77f305200a18e75c93b7a7/pytng-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "65f54e6e4c71fb50cc665b83cfb4f50e3cb0871a0bb0627a48d6606a0bcd3d76",
"md5": "050951e9df54d539210ba8b3b5a96bcb",
"sha256": "8f10f3ca2db8f6d056e6e5a2998027456e2eebbdabbe502fec6a40721d7f1938"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "050951e9df54d539210ba8b3b5a96bcb",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 1767350,
"upload_time": "2024-06-19T02:30:56",
"upload_time_iso_8601": "2024-06-19T02:30:56.401080Z",
"url": "https://files.pythonhosted.org/packages/65/f5/4e6e4c71fb50cc665b83cfb4f50e3cb0871a0bb0627a48d6606a0bcd3d76/pytng-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "25073bbba9d296d3619154e1798cca0c6f76f608bd1d87981b0a430c9da07728",
"md5": "747fabb1de9c183291f390dce7dd19ee",
"sha256": "fc4856c75a37a57e0df914ee4545b68bcd0fdd0787f44b85f06af419092d4c8b"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "747fabb1de9c183291f390dce7dd19ee",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 699571,
"upload_time": "2024-06-19T02:30:59",
"upload_time_iso_8601": "2024-06-19T02:30:59.676302Z",
"url": "https://files.pythonhosted.org/packages/25/07/3bbba9d296d3619154e1798cca0c6f76f608bd1d87981b0a430c9da07728/pytng-0.3.3-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87c06570f68a62a8233b1fc3a05515326ca73dee8979afbb142b2a5ff14fa367",
"md5": "91daacbecb3d40c1ee590bf75bf8ec20",
"sha256": "2623b5ab7a37933a90c69dca7ac20431e513522fba29d0e43dbf09f9866c2e2b"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "91daacbecb3d40c1ee590bf75bf8ec20",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 668249,
"upload_time": "2024-06-19T02:31:05",
"upload_time_iso_8601": "2024-06-19T02:31:05.813551Z",
"url": "https://files.pythonhosted.org/packages/87/c0/6570f68a62a8233b1fc3a05515326ca73dee8979afbb142b2a5ff14fa367/pytng-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e4bcc4a547a0ea553c0313317907abeb96f2f163b39dc666b41c21de25a1790",
"md5": "92cb75471d742fa389412e5662dad831",
"sha256": "85e2f1a4249e5e1bfa22ffd1fa10a92c2a27a2903ec8c61ee041f844e6601f49"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "92cb75471d742fa389412e5662dad831",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1726265,
"upload_time": "2024-06-19T02:31:07",
"upload_time_iso_8601": "2024-06-19T02:31:07.876319Z",
"url": "https://files.pythonhosted.org/packages/8e/4b/cc4a547a0ea553c0313317907abeb96f2f163b39dc666b41c21de25a1790/pytng-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ce81a19e6a391fc76fa8847edf83fb35c83f3d6f43dad415399da282981eeaea",
"md5": "76439d163a4b8b5cf0ba9812faf3f36e",
"sha256": "c495366613e9d711c8a77d64f48ca64eb1cf1219c6be77ff88c44aecdd967891"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "76439d163a4b8b5cf0ba9812faf3f36e",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 694254,
"upload_time": "2024-06-19T02:31:09",
"upload_time_iso_8601": "2024-06-19T02:31:09.818051Z",
"url": "https://files.pythonhosted.org/packages/ce/81/a19e6a391fc76fa8847edf83fb35c83f3d6f43dad415399da282981eeaea/pytng-0.3.3-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f161b57005a56bae34909ec32e8de200191ecea4b112b1ada1d52189560d98ce",
"md5": "46ebfa71b28ec5921846f3a1f741b01e",
"sha256": "9d7b7450c8d0529fc58dc2f8fe23fd1409891b32e6b225b6ef84a9134e36361e"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "46ebfa71b28ec5921846f3a1f741b01e",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 685458,
"upload_time": "2024-06-19T02:31:12",
"upload_time_iso_8601": "2024-06-19T02:31:12.589453Z",
"url": "https://files.pythonhosted.org/packages/f1/61/b57005a56bae34909ec32e8de200191ecea4b112b1ada1d52189560d98ce/pytng-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5a818ea6035b3cd5585c5fab957308dc033500da6d4ecaef029cf9193d76524a",
"md5": "07a7f5535faead1f1ccaee7d0d9e8b60",
"sha256": "2d8452fb34db998409ce70e450d3545c37f72cb8e2a4d315db53252f160cc086"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "07a7f5535faead1f1ccaee7d0d9e8b60",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 1725942,
"upload_time": "2024-06-19T02:31:16",
"upload_time_iso_8601": "2024-06-19T02:31:16.449086Z",
"url": "https://files.pythonhosted.org/packages/5a/81/8ea6035b3cd5585c5fab957308dc033500da6d4ecaef029cf9193d76524a/pytng-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1ef72dd4b2a3c75c685551336ab9182eca9624b32ab65f936599bfa3bc511d40",
"md5": "3b4195cbad31457a5f3041f102d6a497",
"sha256": "84d0baa9ba35804cf4e1b32e0d634a226a393c676e2a3f5cfb2d84432de7e74d"
},
"downloads": -1,
"filename": "pytng-0.3.3-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "3b4195cbad31457a5f3041f102d6a497",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 702856,
"upload_time": "2024-06-19T02:31:21",
"upload_time_iso_8601": "2024-06-19T02:31:21.730281Z",
"url": "https://files.pythonhosted.org/packages/1e/f7/2dd4b2a3c75c685551336ab9182eca9624b32ab65f936599bfa3bc511d40/pytng-0.3.3-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "004d968fd8fd2a06590e1983b1ede9ef9f0d65c7c5944e8661570e346c3de68e",
"md5": "d3386397c40ad24d40e5b88602f044f7",
"sha256": "b4ae30e1d67ce23d3a5b3c2468808643572872539361d5b24c9cdbad51dd6e24"
},
"downloads": -1,
"filename": "pytng-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "d3386397c40ad24d40e5b88602f044f7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 10609167,
"upload_time": "2024-06-19T02:31:27",
"upload_time_iso_8601": "2024-06-19T02:31:27.969458Z",
"url": "https://files.pythonhosted.org/packages/00/4d/968fd8fd2a06590e1983b1ede9ef9f0d65c7c5944e8661570e346c3de68e/pytng-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-19 02:31:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pytng"
}