This package provides the TNGFileIterator object to allow simple Pythonic access to data contained within TNG files.
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.
Installation
To install using pip, simply run
pip install pytng
To install the latest development version from source, run
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.
Metadata
Release files for pytng 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytng-0.3.4.tar.gz | 10.6 MB | Details |
Built distributions (wheels)
Total release size: 26.5 MB
Release files / pytng-0.3.4.tar.gz
| Download URL | pytng-0.3.4.tar.gz |
|---|---|
| Size | 10.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c7055aaa41dd71c46fe273e45151dae43a1cb359b78a274f311d8c17fcd596d
|
|
BLAKE2b-256 checksum How to use checksums |
25b49f808502e38ca310ef5516508d0db513c1a3563b754d4eefd46efec10cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp314-cp314-win_amd64.whl
| Download URL | pytng-0.3.4-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 840.6 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
53f43f9c2d8aae7dffe3480f2e18ac2131fe2d08c8665e6a880d9357e8af60ea
|
|
BLAKE2b-256 checksum How to use checksums |
2dde766e063477f87c84f5eaa2c1b5675ae4463485fc94083f9241c417a05cb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3f105acd0612bc403bdcb788515646806cc6d51bfe5dd361e182f93b24c22f1f
|
|
BLAKE2b-256 checksum How to use checksums |
6bc30d36df0728eb311c9b6f248cc6fc5c41c8e913b98b9ba3c8f09b4ddf8d7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 618.6 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
69d09c639cdfaf0f40b2a47a094cad2eeb56c031f4875b5f381897ee620ba28a
|
|
BLAKE2b-256 checksum How to use checksums |
3e74f7c415f35dff03026fe4ab5fca92b2ec871e9524151f8b465fbaa0785fcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl
| Download URL | pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl |
|---|---|
| Size | 646.2 kB |
| Tags | CPython 3.14 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
67ad4a080d6f6fde5cb5a710b60cd9a19c58ae1e279cde7a81c807852dd5ddf4
|
|
BLAKE2b-256 checksum How to use checksums |
808d5222bd0c1c3596f76d9f4a44b736be53fc5fdcd943108debdbf45f021ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp313-cp313-win_amd64.whl
| Download URL | pytng-0.3.4-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 837.7 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0c42d78d1661e071e9d69a4f68c119c0722c9b0fbd7914e396212c21e0ba46c1
|
|
BLAKE2b-256 checksum How to use checksums |
99ab70025f593d475d229600b7d626925057fc73cfa784242ba5030bc719929b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
55aa2736d524cab7cc2fd751f6f347e2dff0f900c273d9c6e85b5e84d4bfd05a
|
|
BLAKE2b-256 checksum How to use checksums |
999570bf1ebe4444288973fab11973c7e7a2f24d36f5d9bbd812c27c28220693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 617.9 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1fa22c2140859a7865ff66133017a1bfea24be5f96f313fdf98d04812fbb5ae3
|
|
BLAKE2b-256 checksum How to use checksums |
f29fc20817221c499e37bdf16931b7005c783e2962e2e22e5a34c15f79b61615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 645.7 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
0bb4a42c0e0f54a1632e569a79e4561fa87da6f930e58e2a26512286925f9720
|
|
BLAKE2b-256 checksum How to use checksums |
b1c50b996d38783e383214378d41e0bcce3eb17cf407e2be397643311c2d8ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp312-cp312-win_amd64.whl
| Download URL | pytng-0.3.4-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 837.8 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ad320c35247a1407d531b9f8a7dcb2b798db447b39685acb5ea1724d025da9a2
|
|
BLAKE2b-256 checksum How to use checksums |
68fbd6cf73c987d53e00dee6180c0aa8934a113cf2eef605786d1e36cb831cd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
50552c4dbb9689cac0268ed650fd3fbf69c012ca42ba809274c08ee5f563e0f4
|
|
BLAKE2b-256 checksum How to use checksums |
265be34f231158857f5cfc400c757e6c7fdb7164e89d2dc202c41839ef4c0983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 619.1 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fd1b56f9df7fe1ee67a08ccfa4f7d723a375be9ddfc212f25db305efb4610156
|
|
BLAKE2b-256 checksum How to use checksums |
abb646625f0c4f5af1ede50b8500d345a38e00cdcf7afe664f60d59d0fc3c778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 647.1 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
5ea3fb667ab3ac3f85d0e8e14546b8fbcfeee97a91ee788fa3cf812868abadd1
|
|
BLAKE2b-256 checksum How to use checksums |
8d5bab260c0a0d6edbe18a0b460e30527013a2f71e45741bc47fdc7f621f785e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp311-cp311-win_amd64.whl
| Download URL | pytng-0.3.4-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 840.6 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
109c0e0da06fd1effbc57d95fcef20fea5e713f35efaa61711c7ae033990de5e
|
|
BLAKE2b-256 checksum How to use checksums |
75c687fd12967688ba0178b32dd29696615e861705615b98fa912a0da4d958ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f36dcad017e6000b3218b846a6e117df5e06f0c2d7ec6a941caa25d48fdfd73d
|
|
BLAKE2b-256 checksum How to use checksums |
5d0278109f186dcb42140c87f4386fe998671eee93242a7091691013369bb153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 622.3 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
67bb11b2855625703516d888509b72fdebaed253a3a6fd5680a1dc98b5f44ede
|
|
BLAKE2b-256 checksum How to use checksums |
4faca2a385b984078564b4dfdc3c7dafd3e64a5351e8711734e36e0ac0c1f469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 652.2 kB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
719d98b03c44a775ef7e7e296bfb00b88b780bd541b7d45a3c7af3269e393ab3
|
|
BLAKE2b-256 checksum How to use checksums |
1d7ea1096a7eeaba483846651b6f210a57f70e76654739a9247c1e78a5777321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency log