qcparse
A library for parsing Quantum Chemistry output files into structured data objects and converting structured input objects into program-native input files. Uses data structures from qcio.
qcparse works in harmony with a suite of other quantum chemistry tools for fast, structured, and interoperable quantum chemistry.
The QC Suite of Programs
- qcio - Beautiful and user friendly data structures for quantum chemistry.
- qcparse - A library for efficient parsing of quantum chemistry data into structured
qcioobjects and conversion ofqcioinput objects to program-native input files. - qcop - A package for operating quantum chemistry programs using
qciostandardized data structures. Compatible withTeraChem,psi4,QChem,NWChem,ORCA,Molpro,geomeTRICand many more. - BigChem - A distributed application for running quantum chemistry calculations at scale across clusters of computers or the cloud. Bring multi-node scaling to your favorite quantum chemistry program.
ChemCloud- A web application and associated Python client for exposing a BigChem cluster securely over the internet.
✨ Basic Usage
-
Installation:
python -m pip install qcparse
-
Parse a file into a
SinglePointResultsobject with a single line of code.from qcparse import parse # May pass a path or the contents of a file as string/bytes results = parse("terachem", "/path/to/stdout.log")
-
The
resultsobject will be aqcio.SinglePointResultsobject. Rundir(results)inside a Python interpreter to see the various values you can access. A few prominent values are shown here as an example:from qcparse import parse results = parse("/path/to/tc.out", "terachem") results.energy results.gradient # If a gradient calc results.hessian # If a hessian calc results.calcinfo_nmo # Number of molecular orbitals
-
Parsed values can be written to disk like this:
with open("results.json", "w") as f: f.write(result.model_dumps_json())
-
And read from disk like this:
from qcio import SinglePointResults results = SinglePointResults.open("results.json")
-
You can also run
qcparsefrom the command line like this:qcparse -h # Get help message for cli qcparse terachem ./path/to/tc.out > results.json # Parse TeraChem stdout to json
💻 Contributing
Please see the contributing guide for details on how to contribute new parsers to this project :)
If there's data you'd like parsed from output files or want to support input files for a new program, please open an issue in this repo explaining the data items you'd like parsed and include an example output file containing the data, like this.
Metadata
Release files for qcparse 0.7.5
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 |
|---|---|---|---|---|
| qcparse-0.7.5.tar.gz | 15.5 kB | With provenance | Details for qcparse-0.7.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qcparse-0.7.5-py3-none-any.whl | Python 3 | none | any | Details for qcparse-0.7.5-py3-none-any.whl |
Total release size: 34.6 kB
Release files / qcparse-0.7.5.tar.gz
| Download URL | qcparse-0.7.5.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77f40a4da4d68bea8620e086aa034d7cbab3eddc25c0b2672f5708e82892e5eb
|
|
BLAKE2b-256 checksum How to use checksums |
59ef36477430d76e835c83ffa05f2edf55f64ee2ec5c1a1b6c8c9fffd19d7994
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logRelease files / qcparse-0.7.5-py3-none-any.whl
| Download URL | qcparse-0.7.5-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b28bf66a2a1f098ebb64179ba07e09f90c2f69e03ae0fd3205c886a22c63acec
|
|
BLAKE2b-256 checksum How to use checksums |
86f60181118594807a525016d97cb74f40242dcf2b441ccf6d00667b71ccf403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logSecurity for qcparse 0.7.5
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for qcparse-0.7.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2025.
Transparency logA 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.