automol
automol is a Python library for working with molecular geometries. It centers on a single Geometry model (atomic symbols, Cartesian coordinates, charge, and spin) and builds identity generation (InChI, SMILES, ...), 3D visualization, and RDKit interoperability on top of it.
See the documentation for the user guide and API reference.
Installation
automol requires Python 3.13 or later.
With Pixi, add it from the avcopan/automech channel on prefix.dev:
pixi workspace channel add https://repo.prefix.dev/avcopan/automech
pixi add automol
pixi add --pypi xyzrender # optional: only on PyPI, needed for geom.render_svg/render_gif
Or install it from PyPI, which includes xyzrender:
pip install automol # or: uv add automol
For local development, see Contributing.
Usage
Geometry
Every feature builds on the single Geometry model — atomic symbols, Cartesian coordinates, charge, and spin:
from automol import geom, Geometry
water = Geometry(
symbols=["O", "H", "H"],
coordinates=[[0.0, 0.0, 0.0], [0.0, 0.0, 0.96], [0.93, 0.0, -0.24]],
charge=0,
spin=0,
)
com = geom.center_of_mass(water)
Identity generation (InChI, SMILES)
from automol import hill_formula, rdkit_inchi, rdkit_smiles
rdkit_inchi.identity_fn(water) # "InChI=1S/H2O/h1H2"
rdkit_smiles.identity_fn(water) # "O"
hill_formula.identity_fn(water) # "H2O"
water_rt = rdkit_inchi.geometry_fn("InChI=1S/H2O/h1H2") # back to a Geometry
RDKit interoperability
automol.rd brings RDKit functions to the project, without knowing anything about the core Geometry model itself:
from automol import geom, rd
mol = rd.mol.from_smiles("O")
geo = geom.from_rdkit_mol(mol)
Conversions between Geometry and other cheminformatic packages (e.g., RDKit) are maintained by automol.geom and modules wrapping the external packages are agnostic to automol.
Visualization
from automol import View
# Visualization (e.g. in a Jupyter notebook)
view = View()
view.add_geometry(water, label=True)
Geometry also supports inlay rendering, providing a View() and xyz-formatted block:
water
# Shows a 3D rendering + xyz-formatted block.
See the documentation for more on geometries, identity generation, visualization, and interoperability with RDKit.
Architecture
automol is organized as a strict layer stack (ident → geom → rd → utils), enforced by import-linter, with each core data model owned by the module that defines it — external-library bridges (like the RDKit interop above) live in consuming sub-packages rather than in the core models themselves. See Contributing for the full architectural rationale.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. See Contributing for coding standards and workflow.
License
This project is licensed under the MIT License.
Credits
This package was created with copier and the avcopan/copier-pixi-python project template.
Metadata
Release files for automol 0.0.31
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 |
|---|---|---|---|---|
| automol-0.0.31.tar.gz | 30.9 kB | Without provenance | Details for automol-0.0.31.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| automol-0.0.31-py3-none-any.whl | Python 3 | none | any | Details for automol-0.0.31-py3-none-any.whl |
Total release size: 63.7 kB
Release files / automol-0.0.31.tar.gz
| Download URL | automol-0.0.31.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1499a299a60227d1cea96bdaa240041cf9ac63f551d3fb6f9473230f493e91cd
|
|
BLAKE2b-256 checksum How to use checksums |
3741f55150b773b20718b05ebb3b763109a9efab4e8de764b4b34aff0b2333fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / automol-0.0.31-py3-none-any.whl
| Download URL | automol-0.0.31-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa71d9b32dfb64b07333038e758e7cfedce5d4a205484156c21437ae61d0c17b
|
|
BLAKE2b-256 checksum How to use checksums |
209643d2a309c90b40e1da7feb0ed3a560f4a6232ed99371ef11cb1d3da858fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for automol 0.0.31
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.