MOLE
MOLE is a lightweight viewer for ensembles of molecular structures (conformer searches, global optimization runs, geometry optimization trajectories). Launched from the terminal, it opens a window with:
- the 3D structure: ball and stick; rotate, move and zoom with the mouse;
- the energy plot E vs n: hover a point to see n, E and the label; click it to show that structure;
- playback controls: first, previous, play/pause, next, last, speed and loop.
MOLE is designed to run on a remote machine (an HPC cluster or a workstation) and be viewed over ssh -Y. It draws with the core X11 protocol, so only drawing commands travel over the network (a few KB per frame), and the window stays fluid even on a home connection. It only reads results; it never runs calculations.
Installation
MOLE is a single executable with no runtime dependencies. No administrator rights are needed.
With pip (Linux x86_64/aarch64, macOS, Windows):
pip install mole-viewer # or: pip install --user mole-viewer · pipx install mole-viewer · uv tool install mole-viewer
mole # the package is called mole-viewer; the command is mole
Prebuilt binary (Linux x86_64, static; works with any glibc):
curl -LO https://github.com/Padalher/MOLE/releases/latest/download/mole-x86_64-linux
chmod +x mole-x86_64-linux
mkdir -p ~/.local/bin && mv mole-x86_64-linux ~/.local/bin/mole
From source (requires Rust):
cargo install --git https://github.com/Padalher/MOLE mole
Viewing MOLE from your computer
Install MOLE where your files are (e.g., the cluster) and connect with X11 forwarding:
ssh -Y user@cluster
cd /path/to/results
mole structures.xyz
Your computer needs an X server to display the window:
| Your computer | X server |
|---|---|
| Linux | built in (X11 or Xwayland) |
| macOS | XQuartz (log out and back in after installing it) |
| Windows | MobaXterm (X server and SSH client in one), or VcXsrv with any SSH client |
MOLE also runs locally on Linux. On macOS and Windows, it runs locally through XQuartz or VcXsrv (set DISPLAY=localhost:0 on Windows), although this has not been tested yet.
Usage
mole ensemble.xyz # XYZ file with one or more structures
mole calc_*.out # Gaussian or ORCA outputs: one structure per file
mole opt_trj.xyz # ORCA optimization trajectory (E vs step)
mole a.xyz b.xyz # several files, in the given order
mole --smooth ensemble.xyz # antialiased drawing (XRender)
mole --list ensemble.xyz # print the structure table, no window
mole --help
- Keyboard: ← → previous/next · space play/pause · Home/End first/last · q or Esc quit.
- Mouse (3D view): drag to rotate · right button to move · wheel to zoom · double click to reset.
Try it with the example included in this repository: the geometry optimization of a distorted water molecule (ORCA 6.1.1, B3LYP-D3BJ/def2-SVP, input in examples/water_opt.inp):
mole examples/water_opt_trj.xyz
Formats and energies
| File | Structures | Energy |
|---|---|---|
.xyz |
all frames | from each comment line: a leading number (-3219847.92 label), E=-76.32, energy=-76.32 or … E -76.32 (ORCA *_trj.xyz) |
Gaussian output (.out, .log) |
last geometry | last SCF Done |
ORCA output (.out, .log) |
last geometry | its FINAL SINGLE POINT ENERGY |
The program is recognized by the file contents, not by the extension. Energies are shown as read, without unit conversion. Structures without an energy can be viewed, but they are not plotted.
Tested with XYZ files, Gaussian 16 Rev. B.01 and ORCA 6.1 outputs.
Citation
If you use MOLE in published work, please cite it. The metadata are in CITATION.cff, and GitHub's Cite this repository button turns them into APA or BibTeX.
Authors
- Pablo D. Alvarez-Hernandez: Universidad Juárez Autónoma de Tabasco, DACB – CICTAT, Mexico.
- Filiberto Ortiz Chi: Cinvestav Unidad Mérida, TheoChem Mérida, Mexico.
MOLE was developed with the assistance of Claude Code (Anthropic).
License
MIT.
Development
cargo test # tests
cargo clippy --all-targets && cargo deny check
MOLE_SAMPLES=/path/to/files cargo test # also read your own files
MOLE_BENCH=200 mole file.xyz # play 200 frames, print the frame rate and exit
mole-core reads the files and has no graphics dependencies; mole is the window (X11 via x11rb). Releases are built and published by GitHub Actions when a v* tag is pushed.
Metadata
Release files for mole-viewer 0.2.0
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 | |
|---|---|---|---|---|
| mole_viewer-0.2.0.tar.gz | 41.8 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| mole_viewer-0.2.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| mole_viewer-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| mole_viewer-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| mole_viewer-0.2.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl | Python 3 | none | macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 | Details |
Total release size: 1.7 MB
Release files / mole_viewer-0.2.0.tar.gz
| Download URL | mole_viewer-0.2.0.tar.gz |
|---|---|
| Size | 41.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a73f547f0e9ac1e03bb4941f1197ad3904088068906613e573f653c3789ee5d
|
|
BLAKE2b-256 checksum How to use checksums |
b8f4ddd13b8f934ca37a94db697a7477a043efc619638c8b75d2a9a83df0ad84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / mole_viewer-0.2.0-py3-none-win_amd64.whl
| Download URL | mole_viewer-0.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 279.7 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
804623a6927553c7b7e4cd98cdeb3fc32e070d5e43333d0593cc6c04ee954570
|
|
BLAKE2b-256 checksum How to use checksums |
e9b2129cccde084902f5e53dfa74ac2cad2a838868b98188c9bc741858893984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / mole_viewer-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mole_viewer-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 360.8 kB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5ac5bee973a3cc2f129b579611e90fd15d115edf00ff8d8a056c01fac263c38e
|
|
BLAKE2b-256 checksum How to use checksums |
f7725eb470b273e9d4875d995c69e1c473e77f8f772f63a0a9a5b82253f0e181
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / mole_viewer-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mole_viewer-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 338.3 kB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
6be05005dc967b0334472075e1cd6248b62044dd1066eb19272265fffae5a35a
|
|
BLAKE2b-256 checksum How to use checksums |
22e0d723cb85e751d32dba81f1633972ed1d2f41a15bc00653591141124d5415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / mole_viewer-0.2.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | mole_viewer-0.2.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 667.1 kB |
| Tags | Python 3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
231540289a400fc1ae18ff89276e6091cc4099f3f8436cc03ae0c4fe8f586f41
|
|
BLAKE2b-256 checksum How to use checksums |
1551409b198cf50c585dfaca3cf289b82f4f555b01e448c50f9364367cc3cbb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logSecurity for mole-viewer 0.2.0
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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for mole_viewer-0.2.0.tar.gz
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 Oct 21, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.