ovo.app.utils.cached_db

Module Contents

Functions

API

ovo.app.utils.cached_db.get_cached_project_ids_and_names(username: str, extra_project_ids: Collection[str] = None) dict[str, str]

Return dict of project id -> name

ovo.app.utils.cached_db.get_cached_available_descriptors(design_ids: Collection[str]) dict[str, ovo.core.database.models.Descriptor]

Return all descriptor keys found in DB for the given design ids.

ovo.app.utils.cached_db.get_cached_descriptor_values(descriptor_key: str, design_ids: list[str])
ovo.app.utils.cached_db.get_cached_design(design_id: str) ovo.core.database.models.Design
ovo.app.utils.cached_db.get_cached_designs(design_ids: Collection[str]) list[ovo.core.database.models.Design]
ovo.app.utils.cached_db.get_cached_design_ids(pool_ids: list[str], **filters) list[str]

Get design ids matching the given filters, sorted from most recently created.

ovo.app.utils.cached_db.get_cached_round(round_id: str) ovo.core.database.models.Round
ovo.app.utils.cached_db.get_cached_rounds(project_id: str = None) list[ovo.core.database.models.Round]
ovo.app.utils.cached_db.get_cached_pool(pool_id: str) ovo.core.database.models.Pool
ovo.app.utils.cached_db.get_cached_pools(pool_ids: Collection[str]) list[ovo.core.database.models.Pool]
ovo.app.utils.cached_db.get_cached_design_jobs(design_job_ids: Collection[str]) list[ovo.core.database.models.DesignJob]
ovo.app.utils.cached_db.get_cached_design_job(design_job_id: str) ovo.core.database.models.DesignJob
ovo.app.utils.cached_db.get_cached_design_jobs_table(round_ids: list[str])
ovo.app.utils.cached_db._get_cached_design_jobs_table(project_id: str = None, round_ids: list[str] = None, update=True, **pool_filters) pandas.DataFrame
ovo.app.utils.cached_db.get_cached_pools_table(project_id: str = None, round_ids: list[str] = None) pandas.DataFrame
ovo.app.utils.cached_db.get_cached_design_descriptors(design_id: str, descriptor_keys: list[str])
ovo.app.utils.cached_db.get_cached_designs_accept_field(design_ids: list[str]) List[bool]
ovo.app.utils.cached_db.get_cached_workflow_pools_and_jobs(project_id: str, workflow_names: Collection[str])