---
name: automol
description: >
  Use when writing Python code that uses the automol package.
license: MIT
compatibility: Requires Python >= 3.13.
---

# automol

## Installation

```bash
pip install automol
```

## API overview

### Classes

Core classes

- `Geometry`: Molecular geometry
- `View`: A `py3Dmol.view` with helpers for geometries and arrows
- `Algorithm`: Identity algorithm
- `AlgorithmRegistry`: Registry of all known identity algorithms

### Geometry Methods

Methods for the Geometry class

- `Geometry.validate_symbols`
- `Geometry.validate_consistency`
- `Geometry.__eq__`
- `Geometry.__repr__`
- `Geometry.xyz_block`
- `Geometry.xyz_file`
- `Geometry.from_xyz_block`
- `Geometry.from_xyz_file`
- `Geometry.relabel_atoms`

### Enumerations

Enum types

- `IdentityKind`: Category of molecular identity

### Exceptions

Exception classes

- `geom.ElementNotFoundError`
- `geom.XYZFormatError`

### Functions

Public functions

- `geom.xyz_block`
- `geom.from_xyz_block`
- `geom.xyz_file`
- `geom.from_xyz_file`
- `geom.xyz_trajectory_block`
- `geom.from_xyz_trajectory_block`
- `geom.xyz_trajectory_comments`
- `geom.xyz_trajectory_file`
- `geom.from_xyz_trajectory_file`
- `geom.rdkit_mol`
- `geom.from_rdkit_mol`
- `geom.select_atoms`
- `geom.remove_atoms`
- `geom.join`
- `geom.center_of_mass`
- `geom.distance_matrix`
- `geom.distance_keys`
- `geom.adjacency_matrix`
- `geom.inertia_tensor`
- `geom.principal_axes`
- `geom.inertial_frame_rotation`
- `geom.distance`
- `geom.angle`
- `geom.dihedral`
- `geom.bonds`
- `geom.angles`
- `geom.dihedrals`
- `geom.translate`
- `geom.reflect`
- `geom.rotate`
- `geom.twist`
- `geom.twist_angle`
- `geom.center`
- `geom.alignment_rotation`
- `geom.axis_alignment_rotation`
- `geom.view`
- `geom.render_svg`
- `geom.render_gif`

### Constants

Module-level constants and data

- `hill_formula`: Identity algorithm
- `rdkit_inchi`: Identity algorithm
- `rdkit_smiles`: Identity algorithm
- `geom.CoordinatesField`
- `geom.FloatArray`

### Other

Additional exports

- `rd`: RDKit bridge, operating on RDKit `Mol` objects only (never `Geometry`)

## Resources

- [Full documentation](https://avcopan.github.io/automol/)
- [llms.txt](llms.txt) — Indexed API reference for LLMs
- [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs
- [Source code](https://github.com/avcopan/automol)
