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 mols_file:
molecule = xyz_parser.parse(mols_file)
for molecule in molecules:
print(f'{molecule.natoms=}')
print(f'{molecule.comment=}')
for atom in molecule.data:
print(f'{atom['atom']=}', end='')
print(f'{atom['xyz']=}', end='')
print(f'{atom['extra']=}', end='')
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.11.tar.gz
(1.7 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.11.tar.gz.
File metadata
- Download URL: xyz_parser-0.0.11.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4aa129e314ecaf65b088aaa27f431cd9d181a77fdb242db89ffb547278790a5
|
|
| MD5 |
a106635b26fa289a38915a37b29b1e26
|
|
| BLAKE2b-256 |
e23528e9b73744006f74b43d1947c3e19ac62d441096b7780f9a5e91eca416bd
|
File details
Details for the file xyz_parser-0.0.11-py3-none-any.whl.
File metadata
- Download URL: xyz_parser-0.0.11-py3-none-any.whl
- Upload date:
- Size: 2.4 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 |
c2926c58af97d01bc04b6303c68db66e80adf35a00fd24b97d5eb11fc473cbc7
|
|
| MD5 |
7f45a73c40d012dd1e81a6126c88e9dc
|
|
| BLAKE2b-256 |
dd5935c5abc06353b22b481aa6eef2c800854bb1e6c74902f54c370a89d5507b
|