Hückel Molecular Orbital (HMO) Viewer & Drawer
HMO.py is an interactive application that allows users to draw the sigma skeleton of conjugated systems, build the corresponding Hückel matrix, calculate π molecular orbitals, and visualize the numerical results as tables and graphics.
Main Features
- ✏️ Interactive drawing of the sigma skeleton molecules (adding atoms, bonds and global charges),
- ⚙️ Automatic calculation of π molecular orbitals using the Hückel method,
- ⚛️ Display of molecular orbital coefficients, energies and reactivity descriptors,
- 🔬 Calculation of various descriptors:
- Total π-electron energy,
- HOMO-LUMO gap,
- Electronic potential (μ),
- Chemical hardness (η),
- Chemical softness (S),
- Electrophilicity index (ω),
- 💾 Save/load molecules in
.hmoformat, - 🖨️ Export results to PDF,
- 📈 Export of data to Excel (.xlsx) files,
- 🖼️ Graphical display of the molecule in the results window.
Installation
The required dependencies are listed in the pyproject.toml file. If you install the project via pip install hmo, all dependencies will be handled automatically.
Launch
python HMO.py
Usage
1️⃣ Drawing:
- Click to add atoms on the canvas,
- Click and drag between two atoms to create a bond,
- Delete or modify atoms/bonds as needed.
2️⃣ Run Hückel:
- Once the molecule is built, click the Run Hückel button to perform the calculations.
3️⃣ Results:
- Click Show Numerical Results to open the detailed window:
- Molecule displayed with atom numbering,
- Full table of molecular orbitals and descriptors,
- Scrollbars are available for larger molecules.
4️⃣ Saving:
- Save the molecule using the menu or the dedicated button (in
.hmoformat), - Export Excel results after running the calculation.
- Generate a PDF full report with sigma skeleton, MOs, and descriptors.
.hmo File Format
A simple text file structured as follows:
Nodes:
C· 330.0 180.0
C· 480.0 210.0
...
Bonds:
0 1
1 2
...
- Each atom:
Type x y - Each bond:
index_atom1 index_atom2
Known Limitations
- The method is limited to planar π-conjugated systems,
- Atom names must be recognized by the library (e.g., C·, O:, etc.),
- No graphical export into the Excel file yet (planned for a future version).
Roadmap
- Improved color and style management,
- Support for user-defined Hückel parameters,
- Optional integration of molecule snapshots in the Excel file.
Useful Links
Credits
This project was developed by Romuald Poteau (LPCNO, University of Toulouse, CNRS & INSA), with strong contributions of ChatGPT for documentation, the graphical interface, and calculation features.
Thanks to users and testers for their feedback and improvement suggestions.
Bibliography
-
Erich Hückel, Quantentheoretische Beiträge zum Benzolproblem. I. Die Elektronenkonfiguration des Benzols und verwandter Verbindungen (1931), Z. Phys. 70: 204–286. DOI: 10.1007/BF01339530
-
Andrew Streitwieser, Molecular Orbital Theory for Organic Chemists (1961), Wiley International Edition, 4th Edition, Wiley.
-
Robert Burns Woodward & Roald Hoffmann, The Conservation of Orbital Symmetry (1969) Angew. Chem., Int. ed. Eng. 8: 781-853. DOI: 10.1002/anie.196907811
-
Frederic A. Van-Catledge, A Pariser-Parr-Pople-based set of Hückel molecular orbital parameters (1980), J. Org. Chem. 45: 4801–4802. DOI: 10.1021/jo01311a060
Metadata
Release files for HMO 0.7.7
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 | Actions |
|---|---|---|---|---|
| hmo-0.7.7.tar.gz | 35.9 MB | Without provenance | Details for hmo-0.7.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hmo-0.7.7-py3-none-any.whl | Python 3 | none | any | Details for hmo-0.7.7-py3-none-any.whl |
Total release size: 40.4 MB
Release files / hmo-0.7.7.tar.gz
| Download URL | hmo-0.7.7.tar.gz |
|---|---|
| Size | 35.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1240711193aa56815407d7ea50917b4a5a6647f47a209c0d9f1161e7f100c300
|
|
BLAKE2b-256 checksum How to use checksums |
14cd6ba768ef8cb502626969b31c3e674c87f3a652282dc22551f1ead205b780
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / hmo-0.7.7-py3-none-any.whl
| Download URL | hmo-0.7.7-py3-none-any.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41aec191faf26d545adccbc1fd12cc803996d65bb6da208181eaf17b30f31805
|
|
BLAKE2b-256 checksum How to use checksums |
ab5e16a3d2aeca8a120b13a29f90704c706f632bc121266a76cba22334d65026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Security for HMO 0.7.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.