# API Reference


## Classes


Core classes


[Database](Database.md#autostorage.Database)  
Database connection manager.

[AutostorageSession](AutostorageSession.md#autostorage.AutostorageSession)  
`sqlmodel.Session` with autostorage's validation and identity listeners.

[IdentityAlgorithm](IdentityAlgorithm.md#autostorage.IdentityAlgorithm)  
A registered identity algorithm.

[IdentityAlgorithmRegistry](IdentityAlgorithmRegistry.md#autostorage.IdentityAlgorithmRegistry)  
Central registry of all known identity algorithms.

[CalculationGeometryLink](CalculationGeometryLink.md#autostorage.CalculationGeometryLink)  
Association table linking geometries to a calculation.

[CalculationRow](CalculationRow.md#autostorage.CalculationRow)  
Quantum chemistry calculation and its associated data.

[CalculationTrajectoryLink](CalculationTrajectoryLink.md#autostorage.CalculationTrajectoryLink)  
Association table linking trajectories to a calculation.

[GeometryRow](GeometryRow.md#autostorage.GeometryRow)  
Molecular geometry definition and metadata.

[GeometryTrajectoryLink](GeometryTrajectoryLink.md#autostorage.GeometryTrajectoryLink)  
Association table linking geometries to a trajectory.

[IdentityAlgorithmRow](IdentityAlgorithmRow.md#autostorage.IdentityAlgorithmRow)  
A chemical identifier algorithm, mirroring an `IdentityAlgorithm`.

[IdentityRow](IdentityRow.md#autostorage.IdentityRow)  
A chemical identifier associated with one or more stationary points.

[IdentityStationaryLink](IdentityStationaryLink.md#autostorage.IdentityStationaryLink)  
Association table linking chemical identities to stationary points.

[ModelRow](ModelRow.md#autostorage.ModelRow)  
Calculation model specification.

[PropertyKindRow](PropertyKindRow.md#autostorage.PropertyKindRow)  
A kind of property (e.g. `energy`, `gradient`, `hessian`).

[PropertyValueRow](PropertyValueRow.md#autostorage.PropertyValueRow)  
Property value for a specific geometry and calculation.

[StageRow](StageRow.md#autostorage.StageRow)  
A chemical state (reactant, product, or transition state) in a reaction.

[StageStationaryLink](StageStationaryLink.md#autostorage.StageStationaryLink)  
Association table linking stationary points to reaction stages.

[StationaryPointRow](StationaryPointRow.md#autostorage.StationaryPointRow)  
A stationary point on a potential energy surface.

[StepRow](StepRow.md#autostorage.StepRow)  
An elementary reaction step connecting a reactant, TS, and product.

[StepValidationLink](StepValidationLink.md#autostorage.StepValidationLink)  
Association table linking validations to a step.

[TrajectoryAxisRow](TrajectoryAxisRow.md#autostorage.TrajectoryAxisRow)  
Physical coordinate that one dimension of a trajectory runs along.

[TrajectoryRow](TrajectoryRow.md#autostorage.TrajectoryRow)  
Ordered sequence of geometries from a calculation trajectory.

[ValidationRow](ValidationRow.md#autostorage.ValidationRow)  
Validation result for a specific step and calculation.

[PropertyKind](PropertyKind.md#autostorage.PropertyKind)  
A registered kind of property.

[PropertyKindRegistry](PropertyKindRegistry.md#autostorage.PropertyKindRegistry)  
Central registry of all known property kinds.

[types.CompressedArrayTypeDecorator](types.CompressedArrayTypeDecorator.md#autostorage.types.CompressedArrayTypeDecorator)  
Stores a NumPy array as zlib-compressed binary data in the DB.

[types.CompressedJSONTypeDecorator](types.CompressedJSONTypeDecorator.md#autostorage.types.CompressedJSONTypeDecorator)  
Stores a JSON-serializable value as zlib-compressed binary data in the DB.


## Protocols


Structural typing protocols


[IdentityProtocol](IdentityProtocol.md#autostorage.IdentityProtocol)  
Protocol for identity functions.

[PropertyValidationProtocol](PropertyValidationProtocol.md#autostorage.PropertyValidationProtocol)  
Protocol for property value validation functions.


## Enumerations


Enum types


[AxisKind](AxisKind.md#autostorage.AxisKind)  
Physical coordinate that a trajectory dimension runs along.

[IdentityKind](IdentityKind.md#autostorage.IdentityKind)  
Category of molecular identity, from coarsest to finest.

[Role](Role.md#autostorage.Role)  
Relationship between calculations and geometries/trajectories.


## Exceptions


Exception classes


[IdentityGenerationWarning](IdentityGenerationWarning.md#autostorage.IdentityGenerationWarning)  
An identity algorithm could not generate an identity for a geometry.

[StationaryOrderWarning](StationaryOrderWarning.md#autostorage.StationaryOrderWarning)  
A stationary point's Hessian does not have the point's `order`.


## Functions


Public functions


[geometry_hash()](geometry_hash.md#autostorage.geometry_hash)  
SHA-256 digest of a Geometry's symbols, coordinates, charge, and spin.

[events.create_identity_algorithms()](events.create_identity_algorithms.md#autostorage.events.create_identity_algorithms)  
Create or update a row for every registered identity algorithm.

[events.create_property_kinds()](events.create_property_kinds.md#autostorage.events.create_property_kinds)  
Create a row for every registered property kind that is missing one.

[events.set_geometry_hash()](events.set_geometry_hash.md#autostorage.events.set_geometry_hash)  
Set `hash`, whose unique index rejects duplicate geometries.

[events.sort_step_stage_ids()](events.sort_step_stage_ids.md#autostorage.events.sort_step_stage_ids)  
Auto-sort stage_id1 and stage_id2 so stage_id1 \< stage_id2.

[events.verify_step_barrierless_consistency()](events.verify_step_barrierless_consistency.md#autostorage.events.verify_step_barrierless_consistency)  
Verify that `is_barrierless` is True exactly when `stage_id_ts` is None.

[events.verify_property_values_before_flush()](events.verify_property_values_before_flush.md#autostorage.events.verify_property_values_before_flush)  
Convert property values to their kind's native units and dtype, and validate.

[events.verify_valid_stationary_has_hessian()](events.verify_valid_stationary_has_hessian.md#autostorage.events.verify_valid_stationary_has_hessian)  
Verify that stationary points marked as validated have a Hessian.

[events.validate_stationary_order_before_flush()](events.validate_stationary_order_before_flush.md#autostorage.events.validate_stationary_order_before_flush)  
Set `is_validated` from whether the Hessians have the stationary point's order.

[events.verify_trajectory_geometry_ndim()](events.verify_trajectory_geometry_ndim.md#autostorage.events.verify_trajectory_geometry_ndim)  
Ensure each linked geometry's index length matches its trajectory's ndim.

[events.fill_trajectory_axis_values()](events.fill_trajectory_axis_values.md#autostorage.events.fill_trajectory_axis_values)  
Validate trajectory axes, and fill in the values of their geometries.

[events.add_registry_identities_before_flush()](events.add_registry_identities_before_flush.md#autostorage.events.add_registry_identities_before_flush)  
Attach registry identities to new stationary points.

[query.stationary_point_by_identity()](query.stationary_point_by_identity.md#autostorage.query.stationary_point_by_identity)  
Select stationary points with a given identity.

[identity.rdkit_inchi_conn_identity_fn()](identity.rdkit_inchi_conn_identity_fn.md#autostorage.identity.rdkit_inchi_conn_identity_fn)  
Generate a connectivity InChI string with RDKit.

[identity.rdkit_inchi_identity_fn()](identity.rdkit_inchi_identity_fn.md#autostorage.identity.rdkit_inchi_identity_fn)  
Generate a standard InChI string with RDKit.

[identity.rdkit_smiles_identity_fn()](identity.rdkit_smiles_identity_fn.md#autostorage.identity.rdkit_smiles_identity_fn)  
Generate a SMILES string with RDKit.

[identity.hill_formula_identity_fn()](identity.hill_formula_identity_fn.md#autostorage.identity.hill_formula_identity_fn)  
Generate the molecular formula in Hill order.


## Constants


Module-level constants and data


[hill_formula](hill_formula.md#autostorage.hill_formula)  
Molecular formula in Hill order (kind: formula).

[rdkit_inchi](rdkit_inchi.md#autostorage.rdkit_inchi)  
Standard InChI from RDKit (kind: stereoisomer; minima only).

[rdkit_inchi_conn](rdkit_inchi_conn.md#autostorage.rdkit_inchi_conn)  
Connectivity InChI from RDKit (kind: isomer; minima only).

[rdkit_smiles](rdkit_smiles.md#autostorage.rdkit_smiles)  
SMILES from RDKit (kind: stereoisomer; parent: `rdkit_inchi`; minima only).

[energy_property_kind](energy_property_kind.md#autostorage.energy_property_kind)  
Energy: a scalar in Hartree, stored as float64.

[gradient_property_kind](gradient_property_kind.md#autostorage.gradient_property_kind)  
Gradient: shape `(3N,)` or `(N, 3)` in Hartree/Bohr, stored as float64.

[hessian_property_kind](hessian_property_kind.md#autostorage.hessian_property_kind)  
Hessian: shape `(3N, 3N)` in Hartree/Bohr², stored as float32.

[types.MAX_DECOMPRESSED_BYTES](types.MAX_DECOMPRESSED_BYTES.md#autostorage.types.MAX_DECOMPRESSED_BYTES)  
Upper bound on the decompressed size of a stored blob (guards against zip bombs).


## Type Aliases


Type alias definitions


[identity.OtherGeometries](identity.OtherGeometries.md#autostorage.identity.OtherGeometries)
