Skip to main content

openWFN

PyPI version Python versions License Tests

██████╗ ██████╗ ███████╗███╗   ██╗██╗    ██╗███████╗███╗   ██╗
██╔══██╗██╔══██╗██╔════╝████╗  ██║██║    ██║██╔════╝████╗  ██║
██║  ██║██████╔╝█████╗  ██╔██╗ ██║██║ █╗ ██║█████╗  ██╔██╗ ██║
██║  ██║██╔═══╝ ██╔══╝  ██║╚██╗██║██║███╗██║██╔══╝  ██║╚██╗██║
██████╔╝██║     ███████╗██║ ╚████║╚███╔███╔╝██║     ██║ ╚████║
╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝ ╚══╝╚══╝ ╚═╝     ╚═╝  ╚═══╝

openWFN is a command-line toolkit for molecular geometry, connectivity, and structure exploration from Gaussian checkpoint data. It is designed for fast terminal workflows around formatted checkpoint files, with a built-in local molecule viewer for lightweight inspection and sharing.

Installation

pip install openwfn

Quick Start

Run openWFN on a Gaussian formatted checkpoint file:

openwfn molecule.fchk summary
openwfn molecule.fchk dist 1 2
openwfn molecule.fchk graph
openwfn molecule.fchk xyz molecule.xyz
openwfn molecule.fchk view

If no subcommand is given:

  • in a TTY terminal, openwfn launches interactive mode
  • in non-interactive use, openwfn runs summary

Supported Input

openWFN accepts both Gaussian .fchk and .chk files.

  • .fchk files are read directly
  • Gaussian .chk files are proprietary binary files. openWFN does not decode them directly; it calls Gaussian's formchk utility when that executable is available in your PATH. Users without Gaussian should supply a formatted .fchk file.

You can also run checkpoint conversion explicitly:

openwfn molecule.chk formchk
openwfn molecule.chk formchk molecule.fchk

Stable Commands

  • summary — molecular system summary
  • info — formatted checkpoint metadata
  • dist i j — interatomic distance
  • angle i j k — three-atom bond angle
  • dihedral i j k l — four-atom dihedral
  • bonds — detected covalent bond network
  • graph — fragment and connectivity graph
  • xyz output.xyz — export Cartesian coordinates
  • view — export a standalone local HTML molecule viewer
  • formchk [output.fchk] — convert a Gaussian checkpoint into a formatted checkpoint

Viewer

view exports a fully local standalone HTML viewer powered by bundled 3Dmol.js.

By default it:

  • writes a shareable .html file in the current working directory
  • keeps the viewer self-contained in a single file
  • does not open the browser unless you request it

The exported viewer supports:

  • atom labels
  • local 3D rendering styles
  • built-in downloads for XYZ, PDB, SDF, PNG, JPEG, and SVG

Examples:

openwfn molecule.fchk view
openwfn molecule.fchk view --open
openwfn molecule.fchk view --save viewer.html

Example Sessions

openwfn examples/water/water.fchk summary
openwfn examples/water/water.fchk dist 2 1
openwfn examples/water/water.fchk angle 2 1 3
openwfn examples/methane/methane.fchk graph
openwfn examples/water/water.fchk view --save water_viewer.html
openwfn examples/water/water.fchk

Project Scope

The stable surface of openWFN is focused on:

  • geometry analysis
  • molecular connectivity and fragment inspection
  • coordinate export
  • local browser-based structure viewing

Experimental modules may exist in the codebase, but they are not presented as production-ready features.

License

MIT License. See LICENSE.

Metadata

Release files for openwfn 0.6.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.6.1
File Size Uploaded
openwfn-0.6.1.tar.gz 186.9 kB Details

Built distribution (wheel)

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

Total release size: 371.1 kB

Release files / openwfn-0.6.1.tar.gz

Download URL openwfn-0.6.1.tar.gz
Size 186.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8ea9a742223919f8f1131d3286198c002e71563c735d18862c39468b42ac87d3
BLAKE2b-256 checksum
How to use checksums
3eb5d35f0f260f2b38248aec96ff13bd3a8a005f8c55d473d4e99900d8d2b276
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 10, 2026.

Transparency log

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

Download URL openwfn-0.6.1-py3-none-any.whl
Size 184.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b56c90b34689c531356a57904592c73b006d2cf4b07db41076a26412c4d59b39
BLAKE2b-256 checksum
How to use checksums
63a31c8a0b3c31c74a1fc9be9a6bb365f8e9a2ef45f37d3df6b821629facf1db
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 10, 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