Skip to main content

openWFN: lightweight wavefunction geometry analysis toolkit

Project description

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
  • .chk files are converted to .fchk automatically when Gaussian's formchk utility is available in your PATH

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.

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

openwfn-0.6.0.tar.gz (186.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openwfn-0.6.0-py3-none-any.whl (184.0 kB view details)

Uploaded Python 3

File details

Details for the file openwfn-0.6.0.tar.gz.

File metadata

  • Download URL: openwfn-0.6.0.tar.gz
  • Upload date:
  • Size: 186.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for openwfn-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e48ae2d7c43e43b827db8e5b2f714f0542d9b98a080866af411e0a770d5d2dc1
MD5 5d59c800745b617d22aea1d3a61f8f65
BLAKE2b-256 cf33aff1e760233ae72eef9a8c0e5d25e5c730e73a93a9b169f09e22bff3aade

See more details on using hashes here.

File details

Details for the file openwfn-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: openwfn-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 184.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for openwfn-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7749d87466f8dac5f978b9d35cb9221873537ffc5c8e995b13330ffe5043a6d1
MD5 3215504727b9cc7e85be21141b586519
BLAKE2b-256 38a5ad58b3a92328ae88501c7a67b7a4504f37c2247783f7576915a197b2375f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page