Parser of the xyz file format. Used in chemistry.
Project description
xyz_parser
A python parser for the fileformat (.xyz) used for storing computational chemistry data.
Install
pip install xyz_parser
Use
import xyz_parser
with open('molecules.xyz') as molecules_file:
molecule = xyz_parser.parse(molecules_file)
for molecule in molecules:
print(f'{molecule.natoms=}')
print(f'{molecule.comment=}')
for atom in molecule.atoms:
print(f'{atom.symbol=}', end='')
print(f' {atom.x=}', end='')
print(f' {atom.y=}', end='')
print(f' {atom.z=}', end='')
print(f' {atom.extra=}')
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
xyz_parser-0.0.14.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xyz_parser-0.0.14.tar.gz.
File metadata
- Download URL: xyz_parser-0.0.14.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346f9361159089c07c5dce32bd79ad74e0270518180615deb9000faf6ac9670a
|
|
| MD5 |
69e7eb1579a9484c27322a5a40973510
|
|
| BLAKE2b-256 |
85ac745dd66d0a377d20b778439667001979d7491913a45cedbad61424328cec
|
File details
Details for the file xyz_parser-0.0.14-py3-none-any.whl.
File metadata
- Download URL: xyz_parser-0.0.14-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
868c16b078ad3ec4a39b80a0e2fc4bf68e1047ce5059e898ae15ff33f54d8c7f
|
|
| MD5 |
9bdfcfea01c257d29026324dee7548f8
|
|
| BLAKE2b-256 |
d295b9c8540fee6e04d0c181d5a45bb9d826268f4a2f0f0592b00ed1a23e4a35
|