helpers

This package contains functions that make the workflow more easy for the user: - create_database can be used for the first setup of a new database. - allowed_values_not_adapted.py contains the file with allowed values as it is copied to the archive root during the installation process. - The functions in helper_functions are internally used for the dynamic cration of models - The module full_entry provides functions that combine the workflow for the creation or deletion of a new measurement entry and the creation/deletion of the corresponding directory in the archive folder.

full_entry

create_full_measurement(data, base_dir, ...)

Create a complete measurement entry including database and file system operations.

delete_full_measurement(base_dir, ms_id)

Delete a complete measurement entry (with the id ms_id) including database and file system operations.

create_full_molecule(data, base_dir, ...)

Create a complete molecule entry including database and file system operations.

helper_functions

make_filter_model(model, creation_model)

Create dynamically a pydantic-class for filtering based on an SQLAlchemy- model.

make_ordering_model(model)

Create dynamically a pydantic-class for ordering based on an SQLAlchemy model.

make_update_model(model, creation_model)

Create dynamically a pydantic-class for updating based on an SQLAlchemy model.