benchling_sdk.services.v2.stable.mixture_service module¶

class MixtureService¶

Bases: benchling_sdk.services.v2.base_service.BaseService

Mixtures.

Mixtures are solutions comprised of multiple ingredients where the exact quantities of each ingredient are important to track. Each ingredient is uniquely identified by its component entity.

See https://benchling.com/api/reference#/Mixtures

archive(mixture_ids: Iterable[str], reason: EntityArchiveReason) → MixturesArchivalChange¶

Archive mixtures.

See https://benchling.com/api/reference#/Mixtures/archiveMixtures

bulk_create(mixtures: Iterable[MixtureCreate]) → AsyncTaskLink¶

Bulk create mixtures.

See https://benchling.com/api/reference#/Mixtures/bulkCreateMixtures

bulk_update(mixtures: Iterable[MixtureBulkUpdate]) → AsyncTaskLink¶

Bulk update mixtures.

See https://benchling.com/api/reference#/Mixtures/bulkUpdateMixtures

create(mixture: MixtureCreate) → Mixture¶

Create a mixture.

See https://benchling.com/api/reference#/Mixtures/createMixture

get_by_id(mixture_id: str) → Mixture¶

Get a mixture.

See https://benchling.com/api/reference#/Mixtures/getMixture

list(modified_at: Optional[str] = None, name: Optional[str] = None, name_includes: Optional[str] = None, folder_id: Optional[str] = None, mentioned_in: Optional[Iterable[str]] = None, project_id: Optional[str] = None, registry_id: Optional[str] = None, schema_id: Optional[str] = None, archive_reason: Optional[str] = None, mentions: Optional[Iterable[str]] = None, sort: Optional[ListMixturesSort] = None, ids: Optional[Iterable[str]] = None, entity_registry_ids_any_of: Optional[Iterable[str]] = None, ingredient_component_entity_ids: Optional[Iterable[str]] = None, ingredient_component_entity_ids_any_of: Optional[Iterable[str]] = None, names_any_of: Optional[Iterable[str]] = None, names_any_of_case_sensitive: Optional[Iterable[str]] = None, schema_fields: Optional[Dict[str, Any]] = None, page_size: Optional[int] = None, author_idsany_of: Optional[Iterable[str]] = None) → PageIterator[Mixture]¶

List Mixtures.

See https://benchling.com/api/reference#/Mixtures/listMixtures

unarchive(mixture_ids: Iterable[str]) → MixturesArchivalChange¶

Unarchive mixtures.

See https://benchling.com/api/reference#/Mixtures/unarchiveMixtures

update(mixture_id: str, mixture: MixtureUpdate) → Mixture¶

Update a mixture.

See https://benchling.com/api/reference#/Mixtures/updateMixture