Skip to main content

openWFN

Wavefunction analysis, made reproducible.

A unified post-processing toolkit for turning quantum-chemistry calculations into traceable, reproducible, review-ready results.

PyPI Python Tests Documentation License: MIT

Get started · CLI reference · Validation · Citation


openWFN connects scientific analysis, automation, validation evidence, and research output through one typed calculation model. It works locally through the command line or Python, from individual calculations and high-throughput collections.

Analyze · Automate · Validate · Publish

  • Analyze molecular structure, orbitals, electron density, atomic populations, electrostatic potential, and derived properties.
  • Automate with stable CLI commands, a typed Python API, structured results, resumable batches, and JSON/CSV exports.
  • Validate using explicit capability status, parser provenance, transformations, numerical controls, and fixture-backed evidence.
  • Publish durable reports, figures, cube files, structures, and batch manifests.

Install

openWFN supports Python 3.10–3.13.

Install the stable release:

python -m pip install --upgrade openwfn
openwfn --version

Install the exact release when reproducing research:

python -m pip install openwfn==0.8.1

First analysis

openwfn examples install ./openwfn-examples
openwfn ./openwfn-examples/water.fchk doctor
openwfn ./openwfn-examples/water.fchk summary
openwfn ./openwfn-examples/water.fchk orbitals frontier

For your own calculation, replace the example path:

openwfn molecule.fchk summary

Run a collection of calculations with resumable, structured output:

openwfn batch ./calculations \
  --analyses summary,frontier \
  --output-dir ./results \
  --resume

Use JSON when another program will consume the result:

openwfn --format json --output summary.json molecule.fchk summary

Scientific correctness safeguards

openWFN uses source-faithful electronic metadata wherever Gaussian FCHK provides it. ECP and ghost centers use the file's effective nuclear charges instead of blindly substituting atomic numbers, and density validation prefers the source electron-count records. Population and density conservation failures return partial results with warnings rather than presenting inconsistent numbers as clean successes.

For unrestricted calculations, request the spin-complete frontier view with openwfn FILE orbitals frontier --spin all; batch workflows support the same spin selection. Post-HF files explicitly report when the available SCF density is being analyzed rather than implying that a correlated density was used.

The default density spacing of 0.15 bohr is an accuracy/performance tradeoff, not a universal convergence guarantee. Check the returned conservation status and converge spacing/padding for the system and property being reported.

Capability map

Area Current capability Status
Parsing and structure FCHK records, molecular state, geometry, topology Stable
Orbitals Alpha/beta and spin-complete frontier energies and HOMO–LUMO information Stable interface; fixture-backed regressions
Population Mulliken and symmetric Löwdin populations and charges Stable interface; conservation checked and fixture-scoped
Density Total, alpha, beta, and spin integration and cube export Validated only for the named active validation fixtures and tolerances
Electrostatic potential Nuclear and charge-model point ESP Stable interface; special-case regressions included
Grid electronic/total ESP Numerical Coulomb evaluation Experimental
Automation Versioned results, batch manifests, discovery, resume, JSON and CSV Stable
Research reports HTML/Markdown reports, tables, figures, and structures Stable
Interactive workbench Optional visualization and teaching surface Experimental

“Validated” is deliberately scoped. Review the validation evidence and limitations before research use.

Input support

Gaussian formatted-checkpoint (.fchk) data currently provides the full electronic wavefunction record used by openWFN analyses. Gaussian .chk is a proprietary binary format; openWFN calls Gaussian's separately installed formchk utility and does not decode it directly.

XYZ, MOL/SDF, and PDB inputs provide structure-only records. Additional quantum-chemistry parsers will be listed as supported only after their implementation and validation evidence are available.

openwfn calculation.chk formchk calculation.fchk
openwfn calculation.fchk convert --to sdf --output molecule.sdf
openwfn calculation.fchk density cube density.cube

Documentation

Security and privacy

Computations are local, but input and generated artifacts can contain unpublished research. Never post private checkpoint files, credentials, personal filesystem paths, or license details in public issues. Read the security and data-privacy guide.

Development

python -m pip install -e ".[test,docs]"
python -m pytest
python -m ruff check .
python scripts/run_validation.py
python scripts/check_docs.py --root .
python -m mkdocs build --strict

Contributions should include tests, documented units and assumptions, and validation evidence appropriate to the claim. See Contributing.

Project policies: Code of Conduct · Security · Maintainers · Contributors · Roadmap

Citation and license

Cite the exact version used and the project repository; see the citation guide. openWFN is released under the MIT License.

Author: Muhammed Shah Shaji

Metadata

Release files for openwfn 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openwfn 0.8.1
File Size Uploaded
openwfn-0.8.1.tar.gz 267.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openwfn 0.8.1
File Interpreter ABI Platform
openwfn-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 533.1 kB

Release files / openwfn-0.8.1.tar.gz

Download URL openwfn-0.8.1.tar.gz
Size 267.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c346186d539500fb785c7afcdba5abd0dc211b2cd8c39c082d6f6185c612e369
BLAKE2b-256 checksum
How to use checksums
ad43073e5cf1ee80e19137f0d41a612d2f97fafff9ea084147abe72b2d83e224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / openwfn-0.8.1-py3-none-any.whl

Download URL openwfn-0.8.1-py3-none-any.whl
Size 265.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
750ed73ec496697153e2fbd05f42d2ede56a8b16b760e9e1fa77536628acdcde
BLAKE2b-256 checksum
How to use checksums
b3f458836fb95e62225c0ca5622e382e009179479955607f48b3189910ce1394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page