openWFN: lightweight wavefunction geometry analysis toolkit
Project description
openWFN
██████╗ ██████╗ ███████╗███╗ ██╗██╗ ██╗███████╗███╗ ██╗
██╔══██╗██╔══██╗██╔════╝████╗ ██║██║ ██║██╔════╝████╗ ██║
██║ ██║██████╔╝█████╗ ██╔██╗ ██║██║ █╗ ██║█████╗ ██╔██╗ ██║
██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║██║███╗██║██╔══╝ ██║╚██╗██║
██████╔╝██║ ███████╗██║ ╚████║╚███╔███╔╝██║ ██║ ╚████║
╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═══╝
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,
openwfnlaunches interactive mode - in non-interactive use,
openwfnrunssummary
Supported Input
openWFN accepts both Gaussian .fchk and .chk files.
.fchkfiles are read directly.chkfiles are converted to.fchkautomatically when Gaussian'sformchkutility is available in yourPATH
You can also run checkpoint conversion explicitly:
openwfn molecule.chk formchk
openwfn molecule.chk formchk molecule.fchk
Stable Commands
summary— molecular system summaryinfo— formatted checkpoint metadatadist i j— interatomic distanceangle i j k— three-atom bond angledihedral i j k l— four-atom dihedralbonds— detected covalent bond networkgraph— fragment and connectivity graphxyz output.xyz— export Cartesian coordinatesview— export a standalone local HTML molecule viewerformchk [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
.htmlfile 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, andSVG
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48ae2d7c43e43b827db8e5b2f714f0542d9b98a080866af411e0a770d5d2dc1
|
|
| MD5 |
5d59c800745b617d22aea1d3a61f8f65
|
|
| BLAKE2b-256 |
cf33aff1e760233ae72eef9a8c0e5d25e5c730e73a93a9b169f09e22bff3aade
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7749d87466f8dac5f978b9d35cb9221873537ffc5c8e995b13330ffe5043a6d1
|
|
| MD5 |
3215504727b9cc7e85be21141b586519
|
|
| BLAKE2b-256 |
38a5ad58b3a92328ae88501c7a67b7a4504f37c2247783f7576915a197b2375f
|