benchling_sdk.apps.helpers.config_helpers module¶
- exception UnsupportedSubTypeError¶
Bases:
Exception
Error when an unsupported subtype is encountered.
- field_definitions_from_dependency(dependency: Union[benchling_api_client.v2.alpha.models.entity_schema_dependency.EntitySchemaDependency, benchling_api_client.v2.alpha.models.schema_dependency.SchemaDependency, benchling_api_client.v2.alpha.models.workflow_task_schema_dependency.WorkflowTaskSchemaDependency, benchling_api_client.v2.alpha.models.workflow_task_schema_dependency_output.WorkflowTaskSchemaDependencyOutput]) List[benchling_api_client.v2.alpha.models.base_manifest_config.BaseManifestConfig] ¶
Safely return a list of field definitions from a schema dependency or empty list.
- model_type_from_dependency(dependency: Union[benchling_api_client.v2.alpha.models.entity_schema_dependency.EntitySchemaDependency, benchling_api_client.v2.alpha.models.schema_dependency.SchemaDependency]) Type[Union[AssayResult, AssayRun, Box, Container, Entry, Location, Plate, Request, AaSequence, CustomEntity, DnaSequence, DnaOligo, Mixture, RnaOligo]] ¶
Translate a schema dependency to its model class.
- options_from_dependency(dependency: benchling_api_client.v2.alpha.models.dropdown_dependency.DropdownDependency) List[benchling_api_client.v2.alpha.models.base_manifest_config.BaseManifestConfig] ¶
Safely return a list of options from a dropdown dependency or empty list.
- scalar_type_from_config(config: benchling_api_client.v2.beta.models.scalar_config.ScalarConfig) Union[object, Type[Union[bool, date, datetime, float, int, str]]] ¶
Translate a scalar config to its Pyton type.
- workflow_task_schema_output_from_dependency(dependency: benchling_api_client.v2.alpha.models.workflow_task_schema_dependency.WorkflowTaskSchemaDependency) Optional[benchling_api_client.v2.alpha.models.workflow_task_schema_dependency_output.WorkflowTaskSchemaDependencyOutput] ¶
Safely return a workflow task schema output from a workflow task schema or None.