pwfn
pwfn is a tiny library for parsing AIMPAC
format .wfn files from quantum
chemistry programs and Molden2Aim
into a Python data structure. This can be used to do ML on electronic
wavefunctions.
This library does not do anything besides parsing! It is basically a single page pyparsing grammar. You'll need to do your own data processing from its outputs.
Usage
pwfn consists of a single string parser pwfn.loads(s),
import pwfn
with open("benzene.wfn", "r") as f:
wavefunction = pwfn.loads(f.read())
This returns a Wavefunction container with the extracted data in its
attributes. All quantities are in Hartree units (unchanged from the .wfn
format).
Installation
pwfn is available from pip,
pip install pwfn
It depends on the excellent pyparsing library as well as numpy.
Notes
If you want a similarly minimalist library to parse formatted checkpoint files, consider my other library fchic. If you are looking for a full feature solution for wavefunction data analysis, consider using the excellent Multiwfn program or orbkit.
License
pwfn is free software provided under the MIT license.
Metadata
Release files for pwfn 0.1.1
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 | |
|---|---|---|---|---|
| pwfn-0.1.1.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pwfn-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / pwfn-0.1.1.tar.gz
| Download URL | pwfn-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb62da499792f87dc29edd2dfa17c7fc77b054437f5b5045c3988429f6a908df
|
|
BLAKE2b-256 checksum How to use checksums |
ee90f143f91155e2ee6f1d03ebd96c667647cc0eeaec66407fff1f3d14153836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / pwfn-0.1.1-py3-none-any.whl
| Download URL | pwfn-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
291751fd705f5173fb58c256db612d2638f3ae364cbc00770292d6d3d5113512
|
|
BLAKE2b-256 checksum How to use checksums |
dec87a61236b1f2768a2b6652499d80dd76d0e266d0e7ac05262d24e2a871357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for pwfn 0.1.1
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.