Skip to main content

Minimal Cython wrapper of the TNG trajectory library

Project description

https://github.com/MDAnalysis/pytng/workflows/build/badge.svg https://github.com/MDAnalysis/pytng/workflows/docs/badge.svg https://badge.fury.io/py/pytng.svg https://codecov.io/gh/MDAnalysis/pytng/branch/master/graph/badge.svg https://zenodo.org/badge/92180386.svg

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytng-0.3.4.tar.gz (10.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pytng-0.3.4-cp314-cp314-win_amd64.whl (840.6 kB view details)

Uploaded CPython 3.14Windows x86-64

pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl (618.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl (646.2 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

pytng-0.3.4-cp313-cp313-win_amd64.whl (837.7 kB view details)

Uploaded CPython 3.13Windows x86-64

pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl (617.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl (645.7 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pytng-0.3.4-cp312-cp312-win_amd64.whl (837.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl (619.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl (647.1 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pytng-0.3.4-cp311-cp311-win_amd64.whl (840.6 kB view details)

Uploaded CPython 3.11Windows x86-64

pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl (622.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl (652.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file pytng-0.3.4.tar.gz.

File metadata

  • Download URL: pytng-0.3.4.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytng-0.3.4.tar.gz
Algorithm Hash digest
SHA256 8c7055aaa41dd71c46fe273e45151dae43a1cb359b78a274f311d8c17fcd596d
MD5 d061bf228758bcddae6b70f00b3e37c4
BLAKE2b-256 25b49f808502e38ca310ef5516508d0db513c1a3563b754d4eefd46efec10cce

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4.tar.gz:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.4-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 840.6 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytng-0.3.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 53f43f9c2d8aae7dffe3480f2e18ac2131fe2d08c8665e6a880d9357e8af60ea
MD5 1905bf9f8331d13a4a76de869e768c3b
BLAKE2b-256 2dde766e063477f87c84f5eaa2c1b5675ae4463485fc94083f9241c417a05cb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp314-cp314-win_amd64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3f105acd0612bc403bdcb788515646806cc6d51bfe5dd361e182f93b24c22f1f
MD5 35662499ae96815845caeb273dd43d2f
BLAKE2b-256 6bc30d36df0728eb311c9b6f248cc6fc5c41c8e913b98b9ba3c8f09b4ddf8d7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69d09c639cdfaf0f40b2a47a094cad2eeb56c031f4875b5f381897ee620ba28a
MD5 4bdf2bc34816f6046dc9850f6ec538e6
BLAKE2b-256 3e74f7c415f35dff03026fe4ab5fca92b2ec871e9524151f8b465fbaa0785fcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 67ad4a080d6f6fde5cb5a710b60cd9a19c58ae1e279cde7a81c807852dd5ddf4
MD5 fead6ff62de910bb6f5b7a50b9c8c35f
BLAKE2b-256 808d5222bd0c1c3596f76d9f4a44b736be53fc5fdcd943108debdbf45f021ad9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 837.7 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytng-0.3.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0c42d78d1661e071e9d69a4f68c119c0722c9b0fbd7914e396212c21e0ba46c1
MD5 674a792a6ef46509c1daa116dcf013bf
BLAKE2b-256 99ab70025f593d475d229600b7d626925057fc73cfa784242ba5030bc719929b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp313-cp313-win_amd64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55aa2736d524cab7cc2fd751f6f347e2dff0f900c273d9c6e85b5e84d4bfd05a
MD5 40134c99ec30ae304616e687537129a5
BLAKE2b-256 999570bf1ebe4444288973fab11973c7e7a2f24d36f5d9bbd812c27c28220693

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fa22c2140859a7865ff66133017a1bfea24be5f96f313fdf98d04812fbb5ae3
MD5 abc86878fc703fe0344dca091355df41
BLAKE2b-256 f29fc20817221c499e37bdf16931b7005c783e2962e2e22e5a34c15f79b61615

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0bb4a42c0e0f54a1632e569a79e4561fa87da6f930e58e2a26512286925f9720
MD5 24da2f2752386af0eb5715c71ccc1c44
BLAKE2b-256 b1c50b996d38783e383214378d41e0bcce3eb17cf407e2be397643311c2d8ac4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 837.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytng-0.3.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad320c35247a1407d531b9f8a7dcb2b798db447b39685acb5ea1724d025da9a2
MD5 a20006d2fb61825a00c8fec3be95f2a1
BLAKE2b-256 68fbd6cf73c987d53e00dee6180c0aa8934a113cf2eef605786d1e36cb831cd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp312-cp312-win_amd64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50552c4dbb9689cac0268ed650fd3fbf69c012ca42ba809274c08ee5f563e0f4
MD5 20e7be9850c0fd9f67ec8ce9889f651e
BLAKE2b-256 265be34f231158857f5cfc400c757e6c7fdb7164e89d2dc202c41839ef4c0983

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd1b56f9df7fe1ee67a08ccfa4f7d723a375be9ddfc212f25db305efb4610156
MD5 41b1e19e2112098a353c7185d49365b9
BLAKE2b-256 abb646625f0c4f5af1ede50b8500d345a38e00cdcf7afe664f60d59d0fc3c778

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5ea3fb667ab3ac3f85d0e8e14546b8fbcfeee97a91ee788fa3cf812868abadd1
MD5 fb490974819ad6d87c4aa6dcee3c15c4
BLAKE2b-256 8d5bab260c0a0d6edbe18a0b460e30527013a2f71e45741bc47fdc7f621f785e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 840.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytng-0.3.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 109c0e0da06fd1effbc57d95fcef20fea5e713f35efaa61711c7ae033990de5e
MD5 e712917f782dcc74312f3187d9eeb9d7
BLAKE2b-256 75c687fd12967688ba0178b32dd29696615e861705615b98fa912a0da4d958ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp311-cp311-win_amd64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f36dcad017e6000b3218b846a6e117df5e06f0c2d7ec6a941caa25d48fdfd73d
MD5 597c33ab76a9828fa7ebe302be2e6e6b
BLAKE2b-256 5d0278109f186dcb42140c87f4386fe998671eee93242a7091691013369bb153

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67bb11b2855625703516d888509b72fdebaed253a3a6fd5680a1dc98b5f44ede
MD5 9a5e4e001cbbe5889e284522a112c5a8
BLAKE2b-256 4faca2a385b984078564b4dfdc3c7dafd3e64a5351e8711734e36e0ac0c1f469

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 719d98b03c44a775ef7e7e296bfb00b88b780bd541b7d45a3c7af3269e393ab3
MD5 5b5e4744df40e181c0c6910dbf24775e
BLAKE2b-256 1d7ea1096a7eeaba483846651b6f210a57f70e76654739a9247c1e78a5777321

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytng-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: deploy.yaml on MDAnalysis/pytng

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page