groIO
A library to handle the reading and writing of a gro file.
Installation
pip install groio
Usage
import groio
#Read a gro file
title, atoms, box = groio.parse_file("filin.gro")
#Write a gro file
with open("filout.gro", "w") as f:
for line in groio.write_gro(title, output_atoms, box):
print(line, end='', file=f)
#Renumber the atoms to avoid number above 100 000
atoms = groio.renumber(atoms)
The function parse_file returns :
title: the title of the system as written on line 1 of the file as a string
atoms: a list of atom, each atom is stored as a dictionary
box: the box description as written on the last line as a string
Run tests
- Unit tests are available through nosetests python module.
nosetests tests/test_groio.py
Metadata
Release files for groio 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| groio-1.0.tar.gz | 207.7 kB | Without provenance | Details for groio-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| groio-1.0-py2.7.egg | Legacy Egg format | - | - | Details for groio-1.0-py2.7.egg |
Total release size: 214.0 kB
Release files / groio-1.0.tar.gz
| Download URL | groio-1.0.tar.gz |
|---|---|
| Size | 207.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5be4f558b5ac5566941f8caad898aac699042ff537e6b0e4cb4ef5577862d793
|
|
BLAKE2b-256 checksum How to use checksums |
51df0167fec121dfb8dc66b161a4c06efa4f8382ac242be90f4154a854a24004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / groio-1.0-py2.7.egg
| Download URL | groio-1.0-py2.7.egg |
|---|---|
| Size | 6.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
39eaef13548e14e546801bd1d7aa871917b22994af3d0181cf962cb125d68816
|
|
BLAKE2b-256 checksum How to use checksums |
5793bd41b527f03e80664283dca1875977b7c6e71637cbfda107f5efdea3a8ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for groio 1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.