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.

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.1.tar.gz (10.6 MB view details)

Uploaded Source

Built Distributions

pytng-0.3.1-cp312-cp312-win_amd64.whl (693.6 kB view details)

Uploaded CPython 3.12 Windows x86-64

pytng-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pytng-0.3.1-cp312-cp312-macosx_10_9_x86_64.whl (666.9 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

pytng-0.3.1-cp311-cp311-win_amd64.whl (698.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

pytng-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pytng-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl (679.1 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pytng-0.3.1-cp310-cp310-win_amd64.whl (700.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

pytng-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pytng-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl (686.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pytng-0.3.1-cp39-cp39-win_amd64.whl (702.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

pytng-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytng-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl (684.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pytng-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ce6495a42ed57c59874ea1168197e5b74d66b437bde5ed36b1b9047759675ad5
MD5 f95660b438bad4bb9cbabad474ec05a3
BLAKE2b-256 c51d29c2a867825dc4dad711b029f7ea5f09b08b97b3dc740e9affc1341c9dcd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pytng-0.3.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 693.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytng-0.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2fc13d7e816fbb87682fd6587b2790b340f8fadc2027013feb8f52b8b5dcb654
MD5 d4177f59b0323328c0dbd73c0c6ad7c1
BLAKE2b-256 f9de3916b45f00f071f0974360fad2263760fb29fda97c551f31c8dc6b652e12

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af9f8b771faa52b5b330255c12c59f78f9514e5d2269ad82306fef820aa581bc
MD5 eb0accf26d2151e7fba6ef24db793239
BLAKE2b-256 dcfaf69fc45c76df5c2f59f3768f5c0b84b903bddc973e98d614dbdc57740574

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ebd73bb53931a4ad036f513375504a173fdeec54efc5067b9e12420b08f3d3c
MD5 015bd53480082f052842e715b0a95817
BLAKE2b-256 ddf4b71d1d273c898702e497233b8d12b006e2c3da4295ff5f81364dcf66d429

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pytng-0.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 698.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytng-0.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d0bbad5310e752cbe6c99849505ec227e88c7953aae34fc15d79b4a6a3f7d2f9
MD5 7a065ff55e52f0fd893722c5d192a9e0
BLAKE2b-256 7b04e9387a1909d7311e338fd6d586f92c4c1216281aa95c8db797d2df74b7db

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc5444d8ee7d32a0c3d6bf695279a96021553e8c79cc9233fa2cc44ec99bfd2a
MD5 c0471c7249db9d521e0f2711b6156e1a
BLAKE2b-256 ef56ce398f4e21afa83e0eda2dab321fd117941ab5c6774618c08f8272a51b33

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pytng-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 00270f2710b07665fe99c24de3becbf10438f68a506ca4088a511118d4b0acc8
MD5 53521d46abfa8a3c446f677af60468fa
BLAKE2b-256 d5a843b667502a0fb93ecadf669af96e758471ac0436fd7389c4894f773a5820

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 700.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytng-0.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3385845fab43927d57818bbb9dc97444631c03026ca6f88ca34eb87a6e0773fc
MD5 6284ab88d597d95199aaf50ccc2ef847
BLAKE2b-256 2406c18380ed267cb709ffb15570ca924ad3c771353104c6ad771d95a39f722f

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b9acb20e88e50c3d3ab7f1133193160c45e8946f977603a386fe2ceadfebe63
MD5 37c775df6a612ab46b94a14e6129fdea
BLAKE2b-256 009f39f182c52eac443c4234748096c7ff6715b1faa7987954db616f48207098

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 610c5266ca628a8d8761af071c48c3460894c7df9d853cea58fd8d1db71fef06
MD5 4b69dc028a2f36e578639dc23b3c4fae
BLAKE2b-256 140bbc008b777de2bbfc7690c954e917d3ae97d865fdc9edfefee5c83271fd42

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pytng-0.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 702.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytng-0.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a1550fe1c4e06954bb07ff03ce44e6a0c379af9994e7c46b283f51557bfd4e93
MD5 137f8af1464a2e1fd261e6ff1250d6d6
BLAKE2b-256 cf1afa8966ac89bfe392c0933cc67027900c9d15f3a25260b24377444065e520

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28a07b47bcbcec26386d06b09d27c91765087849b59cbdc7d0142a1edb204fd5
MD5 ee4b6607399a5d38022ca4ac42cc6cb5
BLAKE2b-256 d1aee5d732e7ea94e7fd0c52677014aeeca47691e6896dc7f6fa645580a6d61b

See more details on using hashes here.

Provenance

File details

Details for the file pytng-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pytng-0.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f5bb0cdc86f17af627401b635dc77581cc782f9c121154648bfbf76939e092b0
MD5 3da3a21701c6e27905a53ca5fd06ccfd
BLAKE2b-256 0c29e9d138bb204f3f0483bcf74e205d71c5b4af9e7e612682c6b9dd1353d89e

See more details on using hashes here.

Provenance

Supported by

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