Changelog
This changelog is generated automatically from GitHub Releases.
v0.0.23
2026-11-19 · GitHub
Added
GeometryRow.hash: a unique, indexed SHA-256 digest of a geometry’s symbols, coordinates, charge, and spin, set on insert and update by geometry_hash() (exported fromautostorage). Storing an equal geometry twice raises anIntegrityError. Breaking: the new column changes the schema, so databases created by earlier versions must be regenerated.- validate_stationary_order_before_flush: an event that sets
StationaryPointRow.is_validatedwhen every Hessian of the point’s geometry hasordernegative eigenvalues, from autogeom’s vibrational analysis (vibrational_analysisandstationary_point_order). On a mismatch, or a Hessian that is not finite,is_validatedis reset toFalseand a new StationaryOrderWarning is issued. The check runs again when the point, or a Hessian of its geometry, is added, changed, or deleted. Pseudo stationary points are skipped.
Changed
- autostorage requires autogeom 0.0.3 or newer, which added vibrational analysis, and pydantic 2.10.1 or newer, since autogeom 0.0.3 allows pydantic 2.10.0, which breaks
default_factoryfields in SQLModel table rows. - Removed parent from hill_formula because it is general and applies to any stationary point of any order.
- Restrict orders through a set of
ordersrather than a boolean, so that second-order saddle-points aren’t given invalid identities. Formula identities and duplicate identities will haveorders = Nonebecause they apply to any order.
v0.0.22
2026-11-15 · GitHub
Added
- rdkit_inchi_conn: A built-in identity algorithm of kind
isomer: the connectivity InChI, without stereo layers, fromautogeom.inchi(geo, stereo=False). Stereoisomers share one identity (e.g. cis- and trans-1,2-difluoroethene), which rdkit_inchi (kindstereoisomer) tells apart. Every new stationary point now gets four identities instead of three. - IdentityStationaryLink.identity_cache: a dict stored as zlib-compressed JSON (CompressedJSONTypeDecorator), for data that makes generating identities cheaper (e.g. graph isomorphisms). Setting a top-level key in place is saved. The cache is discarded when the stationary point’s geometry changes, since its identities are regenerated.
- IdentityStationaryLink.stationary and IdentityStationaryLink.identity relationships.
Changed
- autostorage requires autogeom 0.0.2 or newer, which added the
stereooption toautogeom.inchi. - Breaking: IdentityAlgorithmRow is keyed by its name, like PropertyKindRow, instead of an integer id.
IdentityAlgorithmRow.parent_algorithm_idis nowparent_algorithm_name, andIdentityRow.algorithm_idis nowalgorithm_name(e.g.IdentityRow(algorithm_name="rdkit_inchi", value=...)). The schema changed, so databases created by earlier versions must be regenerated. - Breaking: every row’s id, and every foreign key to one, is a
uuid.UUIDassigned when the row is created, as GeometryRow and PropertyValueRow already were. Ids no longer follow creation order. Databases created by earlier versions must be regenerated. - Breaking:
StationaryPointRow.identitiesandIdentityRow.stationary_pointsare replaced by the link rowsStationaryPointRow.identity_linksandIdentityRow.stationary_links, which give access to each link’s identity_cache. Use[link.identity for link in stp.identity_links]for the identities; to attach one, appendIdentityStationaryLink(identity=...). Removing a link from either list deletes it. The new column changes the schema, so databases created by earlier versions must be regenerated.
v0.0.21
2026-11-11 · GitHub
Changed
Breaking: autostorage depends on autogeom instead of automol. autogeom is automol’s
Geometrycode under a new name, which no longer clashes with theautomolmodule of the older AutoMech codes. GeometryRow extendsautogeom.Geometry, and its functions are imported from the package root (autogeom.center_of_mass(geo)instead ofautomol.geom.center_of_mass(geo)). See autogeom’s changelog.Breaking: the identity framework moves from automol into autostorage (
autostorage.identity), in a simpler form that matches PropertyKindRegistry:before now automol.Algorithmautostorage.IdentityAlgorithm (frozen) automol.AlgorithmRegistryautostorage.IdentityAlgorithmRegistry automol.IdentityKindautostorage.IdentityKind automol.rdkit_inchi, rdkit_smiles, hill_formulaautostorage.rdkit_inchi, rdkit_smiles, hill_formula register(..., parent_algorithm=...),algorithm.parent_algorithmregister(..., parent=...),algorithm.parentalgorithm.geometry_fn(value)removed; use autogeom.from_smiles(value)orautogeom.from_inchi(value)AlgorithmAlreadyRegisteredErroron a duplicate nameValueErrorIdentity functions keep the signature
(geo, other_geos=None) -> str, but it is no longer checked at registration. The database schema and the algorithm names are unchanged, so existing databases keep working.
Added
IdentityAlgorithmRegistry.get(name), which returns a registered algorithm by name.- A user guide page on identities, including how to register a custom algorithm.
v0.0.20
2026-11-09 · GitHub
Changed
- Breaking: autostorage requires Python 3.13 or later, following SPEC 0.
- automol is required as
>=0.0.31(was==0.0.27). It brings automol’s new geometry functions (e.g.geom.select_atoms,geom.join,geom.twist, multi-frame xyz I/O) and its fix for importing automol in conda environments without xyzrender. See automol’s changelog. - The conda package is published to the
avcopan/automechchannel on prefix.dev, which also has automol, instead of theavcopanchannel on anaconda.org. Install it withpixi workspace channel add https://repo.prefix.dev/avcopan/automechandpixi add autostorage. - The documentation site is built with Great Docs, with a user guide (quickstart, data models, database) whose examples are tested.
- The project follows the copier-pixi-python template, which also adds the README, license, and repository and documentation links to the PyPI page.
Removed
- The out-of-date schema diagrams (
schema/).
v0.0.19
2026-10-09 · GitHub
v0.0.18
2026-10-02 · GitHub
Breaking (no migrations): databases created by earlier versions are not compatible — the
energy/gradient/hessian/identity_extrastables were replaced, property_kind is keyed by name, andidentity_algorithm.deterministicwas dropped. Identity values generated by automol 0.0.26 may also differ from earlier ones for the same geometry (strict Hill order, e.g.NH3→H3N; new Lewis-structure perception for radicals and charged species).
Added
- PropertyKindRow / PropertyValueRow: Generic property storage replacing
EnergyRow,GradientRow, andHessianRow. Values are attached with property_kind_name (e.g."energy") or property_kind, validated against the kind’s expected shape on flush, and stored as float64 (Hessians as float32). - PropertyKind / PropertyKindRegistry (
property.py): In-memory registry of property kinds (name, validation function, storage dtype), with default energy_property_kind, gradient_property_kind, and hessian_property_kind. Its entries are mirrored by name into property_kind when a Database is opened. querymodule:query.stationary_point_by_identity(algorithm, value, include_pseudo=False)selects stationary points by identity, accepting anautomol.Algorithm(e.g.automol.rdkit_inchi), an IdentityAlgorithmRow, or an algorithm name.- AutostorageSession:
sqlmodel.Sessionsubclass returned by Database.session(). All session-level listeners are bound to it rather than to every SQLAlchemySessionin the process. - IdentityGenerationWarning: Issued when an identity algorithm fails for a geometry (e.g. metals, no valid Lewis structure, failed InChI) or returns an empty value; that identity is skipped instead of aborting the flush.
- Database context manager (
with Database(path) as db: ...closes it on exit). TrajectoryRow.geometries_along(axis, at)/TrajectoryRow.view(axis, at): Slice a (multi-dimensional) trajectory along one dimension, holding the other indices fixed atat(default: the lowest index of each), and animate the slice with py3Dmol.- Top-level exports for PropertyKindRow, PropertyValueRow, PropertyKind, AutostorageSession, and IdentityGenerationWarning.
Changed
- Bump
automolto v0.0.26. - GeometryRow now gets automol 0.0.26’s validation: symbols are checked and canonicalized (
"cl"→"Cl"), spin must be consistent with the electron count, andpint.Quantitycoordinates are converted to Angstrom (via automol’sCoordinatesField). - GeometryRow.relabel_atoms() returns a new, unsaved row with a fresh id, so the result can be persisted.
- Every identity now lives in IdentityRow: add_registry_identities_before_flush attaches identities for all registered algorithms to
StationaryPointRow.identitiesvia IdentityStationaryLink, instead of routing some to a childIdentityExtraRow. Identities are also regenerated when a stationary point’s geometry is reassigned, and stationary points added in the same flush share sibling identities (e.g. SMILES). IdentityAlgorithmRow.nameis unique, and create_identity_algorithms() updates the kind/parent of existing rows to match the registry.- Database.session() returns a
sqlmodel.Session(AutostorageSession), sosession.exec(...)is available. The engine URL is built withsqlalchemy.URL.create, so paths containing?or#work. - Trajectory ndim check is now a session-level
before_flushlistener (verify_trajectory_geometry_ndim), so an inferredTrajectoryRow.ndimis persisted. - Decompression of stored arrays is capped at types.MAX_DECOMPRESSED_BYTES, and truncated compressed streams are rejected with a
ValueError. - Dict JSON columns (
ModelRow.keywords,CalculationRow.input_provenance/output_provenance,ValidationRow.extras) now useMutableDict, so in-place edits (e.g.calc.input_provenance["x"] = 1) are persisted on commit. - Database.__init__ disposes its engine if schema creation or registry seeding fails. The
PRAGMA foreign_keys=ONhook is a module-level listener, and the no-opfrom .models import *was removed. - Schema: dropped the redundant
ix_step_stage_id1index (stage_id1 is the leading column of thestepunique indexes). - Internal cleanup: all cascading foreign keys are declared with
models._fk_field()(moved fromtypes.py), and theeventslisteners use typed helpers instead ofAny.
Fixed
- Opening an existing database from a new process no longer inserts duplicate property_kind rows.
- Property kinds loaded from the database (rather than the in-process registry objects) no longer fail validation with a
TypeError. - Energies and gradients are stored at float64 precision again (were float32); integer energies and
(N, 3)gradients are accepted. - verify_valid_stationary_has_hessian is enforced again (it was disabled and referenced the removed
GeometryRow.hessians). tests/scratch*.pyfiles are no longer imported bypytest --doctest-modules.
Removed
IdentityExtraRow: Non-deterministic identifiers (e.g. SMILES, Hill formula) are no longer stored in a separateidentity_extrastable.EnergyRow,GradientRow,HessianRow: Replaced by PropertyValueRow.IdentityAlgorithmRow.deterministic: Removed along withautomol.Algorithm.deterministicin automol 0.0.26.- Unused
algorithm_cachecolumns on IdentityRow and IdentityStationaryLink. stereomolgraphandirmsddev dependencies (no longer used by automol).- types.CompressedJSONTypeDecorator: Unused by any model.
v0.0.17
2026-09-20 · GitHub
Added
- IdentityAlgorithmRow: New table storing chemical identifier algorithms from
automol.ident.AlgorithmRegistry, with fields for name, kind (IdentityKind),deterministicflag, and optionalparent_algorithm_idfor algorithms that depend on a parent (e.g., conformer identities derived from InChI). Each algorithm row links to its IdentityRow andIdentityExtraRowinstances. - create_identity_algorithms(): Populates all identity algorithms from
automol.ident.AlgorithmRegistryinto the database, building the parent→child hierarchy recursively. - Top-level exports: Added IdentityAlgorithmRow, IdentityStationaryLink, StageStationaryLink, and StepValidationLink to
autostorage.__all__.
Changed
- IdentityRow: Now references IdentityAlgorithmRow via
algorithm_idforeign key instead of storing kind/algorithmas direct columns. The unique constraint changed from(kind, algorithm, value)to(algorithm_id, value). Relationships to IdentityAlgorithmRow added viaalgorithmfield. IdentityExtraRow: Now references IdentityAlgorithmRow viaalgorithm_idforeign key; theattributecolumn was removed in favor of the algorithm relationship.- Identity event listeners (
events.py): Complete refactor to work with IdentityAlgorithmRow-based approach:_find_or_create_identity()replaced with_get_or_create_identity()that uses(algorithm_id, value)keys and maintains a per-flush cache (_IdentityCache,_IdentityExtraCache) to avoid duplicate lookups.- New
_IdentityFlushContextdataclass manages per-flush state (session, caches). _resolve_parent_identity()resolves parent identities and sibling geometries for non-deterministic algorithms._attach_algorithm_identity()creates and attaches identities based on whether the algorithm is deterministic or requires a parent.- Sibling geometry resolution now queries via IdentityStationaryLink joins instead of walking in-memory relationships.
v0.0.16
2026-09-11 · GitHub
Changed
GeometryRow.id: Changed from an auto-incrementingintto auuid.UUID(default_factory=uuid.uuid4). All dependent geometry_id foreign keys (CalculationGeometryLink, GeometryTrajectoryLink,EnergyRow,GradientRow,HessianRow, StationaryPointRow) updated fromint | Nonetouuid.UUID | Noneaccordingly._find_or_create_identity: Compares and storesidentity.algorithmdirectly instead ofstr(identity.algorithm).- Bump
automolto v0.0.24.
Fixed
- Identity auto-population event listener (add_registry_identities_before_flush, renamed from
add_inchi_identities_before_flush): Now generates an identity for every algorithm inautomol.ident.AlgorithmRegistry(previously only InChI), excluding SMILES and Hill formula, which continue to be attached separately asIdentityExtraRows. Non-InChI algorithms are passed the InChI identity’s sibling geometries (other_geos); when an algorithm’s value matches a sibling’s geometry, that sibling’s existing identity row is reused instead of creating a duplicate.
v0.0.15
2026-09-03 · GitHub
Fixed
- Identity auto-population event listeners (
add_inchi_identities_before_flush,add_smiles_extras_before_flush,add_hill_extras_before_flush): Now correctly handle StationaryPointRow objects created with relationship objects (geometry=geo_row) in addition to foreign key IDs (geometry_id=geom.id). Previously, the listeners only checked geometry_id and usedsession.get()to load the geometry, which failed when objects were created with relationships and added together without intermediate flushes (as in batch workflow patterns). The fix tries the relationship first, then falls back to FK-based loading, supporting both creation patterns.
v0.0.14
2026-09-02 · GitHub
Changed
– Bump automol to v0.0.23 to resolve dependency installations
v0.0.13
2026-09-01 · GitHub
Added
.claude/CLAUDE.md: Project-level guidance for Claude Code, documenting module architecture, layering rules, Pixi task commands, and autostorage-specific conventions.docs/source/models.md: Dedicated documentation page for the row models and their relationships.- Schema diagrams (
schema/): Added Pintora source files and rendered SVG/PNG diagrams for both simplified and full database schemas. examples/stationary.py: Example demonstrating stationary points, stages, and steps with H2O geometries.examples/scan.py: Example showing PES scan workflow with trajectory data.examples/transition.py: Example illustrating transition state and reaction pathway modeling.tests/test_events.py: Comprehensive test suite for SQLAlchemy ORM event listeners.- Top-level exports: Added CalculationTrajectoryLink, GeometryTrajectoryLink, and
eventsmodule toautostorage.__all__.
Changed
- Module consolidation: Collapsed
src/autostorage/models/directory (with separatecalc.py,data.py,geom.py,link.py,rxn.py,traj.pyfiles) into a singlesrc/autostorage/models.pyfile — all row models, link tables, and helpers now live in one module, eliminating circular import complexity while maintaining logical organization via internal sections (link tables, existential data, stationary points, reaction network, identities). - Documentation reorganization: Streamlined Sphinx docs — consolidated data model, development, and events pages into focused
models.mdand updateddatabase.md; refreshedindex.mdandquickstart.mdto reflect current architecture. - Examples refactor: Replaced single
stationary_point.pyexample with three focused examples (stationary.py,scan.py,transition.py), each demonstrating a distinct workflow pattern. - Test simplification: Removed
tests/conftest.pyand test data files (tests/data/*.xyz,*.gz) — tests now use inline synthetic data instead of external fixtures.
Removed
- Alembic migrations (
migrations/,alembic.ini,tests/test_migrations.py,pixi run migrate): Removed for now;alembicremains a dev dependency for when migrations are reintroduced. Schema for fresh/in-memory Database instances is unaffected, still built viacreate_all(). src/autostorage/exc.py: Custom exception classes (DataIntegrityError,ResultShapeError) removed — validation errors now use standard Python exceptions or SQLAlchemy’s built-in constraint violations.CalcTypeandCalcStatusenums: Removed fromtypes.pyand top-level exports — calculation type/status classification deferred to workflow layer or removed entirely.- Documentation files: Deleted
docs/source/data-model.md,docs/source/development.md, anddocs/source/events.md(content consolidated intomodels.mdand other updated docs). examples/stationary_point.py: Superseded by the three new focused examples.
v0.0.12
2026-07-24 · GitHub
Added
GeometryRow.geometry_hash,.find_or_create: Asha256hash ofsymbols/coordinates/charge/spin, backed by a unique constraint, plus afind_or_createclassmethod (samecommit-flag pattern asModelRow.find_or_create) that reuses a matching row instead of inserting a duplicate. Only catches bit-identical content — a rotated/translated/jittered near-duplicate conformer still gets its own row.- Migration for the new
geometry.geometry_hashcolumn: backfills existing rows before tightening toNOT NULL+ unique, since SQLite can’t add a populated column straight to that state.
Changed
Database.merge_from: GeometryRow is now deduplicated against the target’s existing content (viaGeometryRow.find_or_create), alongside ModelRow and non-auto-managed IdentityRows.
Fixed
- Stationary/Hessian order-consensus revalidation: Moved from per-instance
before_insert/before_updatemapper events (validate_geometry_orders) to a session-levelbefore_flushlistener (revalidate_geometry_orders_on_insert_update). The mapper event fired too late in the flush cycle to persist mutations to already-clean sibling StationaryPointRows, so SQLAlchemy silently dropped those updates instead of writing them. _recompute_geometry_stationary_validity: Skips aHessianRowwhose.ordercan’t be computed yet (still pending its own shape validation later in the same flush) instead of raising the rawValueError.
v0.0.11
2026-07-23 · GitHub
Added
ModelRow.find_or_create,IdentityRow.find_or_create: Look up a matching row by content before creating one, with acommitflag (defaultTrue; passFalseto only flush, leaving the caller’s transaction open for staging several dedup lookups that must succeed or fail together).unique_model/unique_identitydon’t catch duplicates when a nullable column (program_version,basis) isNULL, since SQL treatsNULLas distinct from itself in unique constraints — callers constructing and saving a fresh row each time (without every field set) were silently accumulating duplicate rows for the same logical model/identity, which broke downstream lookups keyed onmodel_id/identity_id.StageRow.find_or_create,StepRow.find_or_create: Same pattern asModelRow.find_or_create, for stages and steps.BaseLink.create(*rows, **attrs): Construct a link row by matching each positional row to its relationship by type (e.g.CalculationGeometryLink.create(calc, geo, role=Role.INPUT)), replacing the removed per-row*_link()wrapper methods below. Raises if a row’s type matches more than one unfilled relationship (e.g. a link table with two relationships to the same row model), rather than silently picking one by declaration order.Database.merge_from(source_db, *, commit=True)(autostorage.merge, new module —merge_databases(),MergeReport): Copy another database’s contents into this one, remapping ids/foreign keys and deduplicating content-unique rows (ModelRow, non-auto-managed IdentityRows) against this database’s existing data. InChI/conformer identities are deliberately left foradd_inchi_identities/assign_conformer_ids(seeevents.py) to regenerate on insert, so matching conformers collapse onto one shared identity across the merged databases. Nothing commits until every table copies without error. Returns aMergeReportof rows copied/reused per table.GeometryRow.symmetry_number: Cached property (functools.cached_property) computing the molecular symmetry number from stereo-preserving graph automorphisms, viastereomolgraph. Safe to cache indefinitely sincesymbols/coordinatesare immutable after insert (verify_geometry_immutable_fields).autostorage.utils.export_mess_input(): Render a sequence of StepRows as MESSWell/Bimolecular/Barrierinput blocks, with energies (electronic + harmonic ZPE, relative to a reference stationary point) and symmetry numbers (GeometryRow.symmetry_number) resolved from the database. A barrierless step’s TS block has no geometry to compute a symmetry number from and gets a flaggedTODO(autostorage)placeholder instead. Does not emitModel/EnergyRelaxation/CollisionFrequencyblocks; the caller must prepend those.autostorage.utils.plot_pes(),PESPlot: Render the same step sequence as a potential energy surface diagram (a Matplotlib figure of level/connector segments along an unlabeled ordinal x-axis), withPESPlot.save()and Jupyter rich display (_repr_png_) support. A species/TS with noEnergyRowat the given model is drawn flagged (dashed, muted gray) rather than omitted.examples/stationary_point.py: Runnable end-to-end example building a synthetic water optimization + frequency workflow, touching every row model except StageRow/StepRow and their reaction-specific link tables.TimestampMixin: Adds server-managedcreated_at/updated_atcolumns to everyBaseRowsubclass.CalcStatus: Lifecycle status enum (PENDING/RUNNING/SUCCEEDED/FAILED) for a newCalculationRow.statuscolumn (defaultPENDING), paired with a newCalculationRow.error_messagecolumn.- CompressedArrayTypeDecorator: Stores NumPy arrays as zlib-compressed
.npybinary data, preserving shape and dtype for arrays of any dimensionality. ReplacesFloatArrayTypeDecorator/Float32BytesTypeDecoratoronGeometryRow.coordinates,GradientRow.value, andHessianRow.value— the latter previously stored a flattened, shapeless raw float32 buffer. StationaryPointRow.identity(kind=..., algorithm=...): Return the first already-loaded identity matching kind and/or algorithm.CalculationRow.input_geometries,.output_geometries,.input_trajectories,.output_trajectories: Properties filtering linked geometries/trajectories by Role.Database.add_all(): Bulk counterpart toadd().Database.get_or_none(): Like get(), but returnsNoneon a miss instead of raising.Database.exists(): Check whether any row matches a statement via a singleEXISTSsubquery, without materializing a match.- Database.__enter__/__exit__: Support
with Database(...) as db:; rolls back the session on an exception before closing. IdentityRow.unique_identity: Unique constraint on(kind, algorithm, value).- Reverse-lookup and FK indexes: Added to the trailing column of every composite-PK link table, to ModelRow/StepRow (null-safe unique indexes, since their existing unique constraints don’t catch duplicates where a nullable column differs only by
NULL), and to previously-unindexed foreign keys (CalculationRow.model_id, and geometry_id/calculation_id onEnergyRow,GradientRow,HessianRow, StationaryPointRow, ValidationRow). - Event listeners:
verify_geometry_immutable_fields(rejects changes toGeometryRow.symbols/.coordinatesafter insert),verify_stage_ts_consistency(validates a StepRow’s stages agree with it on transition-state status),revalidate_geometry_orders_on_hessian_delete(keepsStationaryPointRow.is_validcorrect when the Hessian establishing order consensus is deleted). - Alembic migrations (
migrations/,alembic.ini,pixi run migrate): Evolve an existing on-disk database’s schema in place, targeted viaAUTOSTORAGE_DATABASE_URL; fresh/in-memory Database instances (including tests) are unaffected, still built viacreate_all().
Changed
- Database engine: JSON columns now serialize with sorted keys, so equality filters on JSON columns (e.g.
CalculationRow.input_provenance == prov) match regardless of the dict’s key insertion order. Database.exec_all(): Now returns alistinstead of a lazy iterator.Database.flush(): Also expires all session objects, so an already-loaded object whose row was removed by a DB-levelondelete="CASCADE"during the flush reloads (or raises) on next access instead of reading back stale.- Role enum columns (CalculationGeometryLink.role, CalculationTrajectoryLink.role): Store the enum’s
.valueinstead of its member name. ValidationRow.calculation_id: NowNOT NULLand indexed.HessianRow.harmonic_frequencies: Now afunctools.cached_propertyinstead of a plainproperty, since vibrational analysis re-diagonalizes the Hessian on every call and.order(used to recomputeStationaryPointRow.is_validfor every sibling Hessian of a geometry, on every relevant flush) depends on it. Invalidated automatically on.valueupdate by the newinvalidate_hessian_frequency_cacheevent listener.matplotlib,stereomolgraph: Now required (not optional/dev-only) dependencies, forplot_pes()/export_mess_input()andGeometryRow.symmetry_numberrespectively.
Fixed
- Database:
PRAGMA foreign_mode=DELETE(not a valid SQLite pragma) corrected toPRAGMA journal_mode=DELETE, the intended WAL-mode fallback. GradientRow/HessianRowshape validation, StationaryPointRow/HessianRoworder validation, StepRow stage-consistency validation,add_inchi_identities,assign_conformer_ids: Now resolve the target’s geometry/relationship via the session when only the FK id was set (not the relationship itself), so validation and automatic identity attachment are no longer silently skipped in that case.- ValidationRow: Removed a duplicate explicit id field that shadowed the one already provided by
BaseRow.
Removed
BaseRow.save()andBaseLink.save(): DuplicatedDatabase.add()/Database.merge()with a non-obvious “always commits” side effect. Usedb.add(row)/db.merge(row)directly.GeometryRow.calculation_link(),.trajectory_link(),.stationary_point(),.energy(),.gradient(),.hessian(): Unused one-line wrappers around link/result-row constructors. Construct the row directly instead (e.g.HessianRow(calculation=..., geometry=..., value=...)).TrajectoryRow.geometry_link(),.calculation_link(): Unused one-line wrappers; construct the link row directly.CalculationRow.geometry_link(),.trajectory_link(): Unused one-line wrappers; construct the link row directly.
v0.0.10
2026-07-17 · GitHub
Added
events.py: House customsqlalchemyevents.assign_conformer_ids: Auto-tag duplicate conformers sharing an InChI with a sharedconformer-kind IdentityRow.
exc.py: CustomExceptionclasses.types.py: Custom typing.CalcType: NormalizeCalculationRow.calc_type.
Database(wal=...): Enable SQLite WAL journal mode.irmsddependency: Conformer RMSD comparisons.
Changed
- Module refactor:
models/->models.pyto consolidate logic and address circular import concerns.
BaseRow: Provide a.save()method for standard auto-incremented ID tables.BaseHashedRow: Provide a.resolve()method for hashed tables, searching the database for matching hashes.BaseResultRow: Provide a.query()method for result tables (EnergyRow,GradientRow,HessianRow), searching the database for existing results.BaseLink: Provide a.save()method for non-incremented ID tables (e.g., links).- Table models: Adjust fields and relationships on several models.
- Dependency version:
automol: Bump to0.0.19.ty: Bump to>=0.0.59,<0.0.60.
autostoragelayering: Updated toutils -> database -> events -> models -> types | exc.- Supported platforms: Restrict to
linux-64; pinpythonto>=3.12,<3.14.
Fixed
tests: Reflect changes.
Removed
calculatemodule in favor of direct calls toautomol.query.pyandselect.pyin favor of class methods on table models.PartialMixIndue to type safety concerns.ComparisonMixIn.automaticsdependency (discontinued package).qcdatadependency (no longer used).examplesdirectory.
v0.0.9
2026-06-18 · GitHub
Added
calculatemodule for calculating properties of database rows.GradientRowandHessianRowfor storing respective values.- Event listeners for validating shape of gradient and Hessian values.
- ValidationRow for assocating validation calculations (such as
Intrinsic Reaction Coordinate) with elementary steps. ModelRow.hash(fromautomatics) as a unique constraint.querymodule combiningselectstatements anddb.execmethods for convenience.xyzrenderas a dev / optional dependency.
Changed
- Bump
automaticsto v0.0.6, - Bump
automolto v0.0.16.
Fixed
- Tests to reflect changes.
Removed
readmodule in favor of class methods.
v0.0.8
2026-06-12 · GitHub
Added
BaseRowmodel: Manage universal attributes and mixin methods across all row models.ComparisonMixin: Define equivalency behavior between database rows without including row IDs.IdentityExtraRow: Tag identities with non-queryable attributes (e.g., SMILES strings).selectmodule: Convenience methods for generatingSelectOfScalarobjects.database.get(): Retrieve a row from the database by ID.database.execmethods: Return first, all, or one match to aSelectOfScalarquery.readmodule: Read common file types (e.g., ‘.xyz’) into database instances.automaticsdependency: Maintain a single source of truth for coreautosuiteobjects.- ModelRow: Store pertinent information about a calculation model.
- TrajectoryRow, StageRow, StepRow: Define input/output relationships between GeometryRow, StationaryPointRow, and CalculationRow.
Changed
- Module refactor:
Calculationand related modules exported toautomaticsasModel.
- CalculationRow: Store provenance and IDs of input/output GeometryRow and TrajectoryRow entries.
- Dependency version:
automol: Bump to0.0.14.
autostoragelayering.- Model organization:
geommodule: Models related to molecular geometries.- calculation: Models related to calculation inputs and outputs.
Removed
db.find()anddb.find_or_add().
Fixed
- Database.session(): Yield a persistent session.
- References to
AutoStore.
v0.0.7
2026-04-30 · GitHub
- Renames library to “AutoStorage” to avoid PyPI name conflicts
- Exposed lower-level types and utilities to the top-level import
v0.0.6
2026-04-27 · GitHub
Explicitly set the Pixi Ty version to match the current marketplace extension.
Added database convenience methods:
- row_to_dict() for serializing rows to dictionaries (optionally including default fields)
- verify_single_iteration() to ensure Database.find() returns exactly one RowModel
Updated Database behavior:
- All methods (except delete()) now return full SQLModel objects instead of RowIDs
- Added eager_load parameter to add() and find() to include relationships on returned objects
- Introduced find_or_add() as a convenience wrapper (find() → add() if no match)
- Replaced query() entirely with find(), which accepts partially or fully populated models
Introduced partial model support:
- RowModel.partial(**attrs) allows constructing models with missing required fields for querying
- Implemented via autostore.models.optional using a PartialMixin
Refactored model structure:
- Split autostore/models.py into autostore/models/* for improved organization
- Separated provenance data into a new ProvenanceRow
- Shortened some lengthy model attribute names.
- Standardized model attributes to snake_case
Refined domain models and logic:
- CalculationRow.calc_type changed from str → str | None to reduce redundancy (handled at lower levels)
- Updated calcn.core.project to avoid mutating original Calculation instances
- Updated calcn.core.hash_full to reflect CalculationRow refactor
Simplified module structure:
- Removed standalone autostore/qc
- Moved relevant functionality onto row models (CalculationRow, ProvenanceRow, GeometryRow)
StationaryPointRow now cascade-deletes when linked GeometryRow or CalculationRow is deleted
Reworked test suite to improve modular testing and debugging
v0.0.5
2026-04-09 · GitHub
Added
- Added superprogram fields to CalculationRow.
- Updated qc interfaces to reflect update from qcio -> qcdata
- Database row models moved from models/* to models.py
- Added Database methods for adding, getting, and querying rows from database
- CalculationGeometryLink table to associate Calculation with input/output Geometries
- Calculation Geometries can be accessed by CalculationRow.geometries
- Geometry Calculations can be accessed by GeometryRow.calculations
- Placeholder MetricRow for storing identifying properties
v0.0.4
2026-04-01 · GitHub
v0.0.3
2026-01-29 · GitHub
Added
- Geometry hash field populated by event listener
- Calculation object with hash registry
- Calculation hash table populated by event listener
- Interconversion of Calculation and QCIO ProgramInput objects
- Read energy from database
Fixed
- Specify Calculation-Energy and Geometry-Energy as many-to-one relationships
- Uniqueness constraint in CalculationHashRow
v0.0.2
2026-01-28 · GitHub
Added
qcsubmodule for interconversion withQCIOobjects
Fixed
- Fix coordinate units (Angstrom) in geometry table
v0.0.1
2026-01-28 · GitHub
Added
- Write energy to database