# API Reference


## Classes


Core classes


[UnsupportedElementError](UnsupportedElementError.md#amchi.UnsupportedElementError)  
An element that amchi has no data for (amchi supports H to Xe, main group).

[ParityMargins](ParityMargins.md#amchi.ParityMargins)  
How far each candidate is from an ill-defined parity, with the candidates' keys.

[Candidates](Candidates.md#amchi.Candidates)  
The stereocenter candidates, each with its stereo-determining neighbors.

[Connectivity](Connectivity.md#amchi.Connectivity)  
The bonds of a species or a transition state.

[IllDefinedParityError](IllDefinedParityError.md#amchi.IllDefinedParityError)  
A stereocenter whose parity the coordinates don't define.


## Protocols


Structural typing protocols


[GeometryLike](GeometryLike.md#amchi.GeometryLike)  
Anything with atomic symbols and Cartesian coordinates (N x 3, Å).


## Exceptions


Exception classes


[AmchiError](AmchiError.md#amchi.AmchiError)  
Base class for the errors that amchi raises.


## Functions


Public functions


[from_geometry()](from_geometry.md#amchi.from_geometry)  
The AMChI string of a species, with its connectivity and candidates derived.

[from_ts_geometries()](from_ts_geometries.md#amchi.from_ts_geometries)  
The AMChI string of a TS, with its connectivity and candidates derived.

[string()](string.md#amchi.string)  
The AMChI string of a species or a transition state (TS).

[add_bond_candidate()](add_bond_candidate.md#amchi.add_bond_candidate)  
Add a bond candidate, with all its neighbors by ascending index.

[candidates()](candidates.md#amchi.candidates)  
The stereocenter candidates of a species or a TS, with their neighbors.

[remove_candidate()](remove_candidate.md#amchi.remove_candidate)  
Remove an atom candidate (an index) or a bond candidate (a pair).

[connectivity()](connectivity.md#amchi.connectivity)  
The bonds of a species, from its interatomic distances.

[ts_connectivity()](ts_connectivity.md#amchi.ts_connectivity)  
The bonds of a TS, from reactant-side and product-side geometries.

[parity_margins()](parity_margins.md#amchi.parity_margins)  
How nearly planar each candidate is, as a diagnostic.


## Type Aliases


Type alias definitions


[Bond](Bond.md#amchi.Bond)  
A bond, as a pair of atom indices `(i, j)` with `i < j`.
