benchling_sdk.services.v2.stable.inventory_service module¶

class InventoryService¶

Bases: benchling_sdk.services.v2.base_service.BaseService

Inventory.

Manage inventory wide objects.

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

__init__(client: benchling_api_client.v2.client.Client, retry_strategy: RetryStrategy)¶

Initialize inventory service.

Parameters
  • client – Underlying generated Client.

  • retry_strategy – Retry strategy for failed HTTP calls

validate_barcodes(registry_id: str, barcodes: Iterable[str]) → List[BarcodeValidationResult]¶

Validate barcodes.

See https://benchling.com/api/reference#/Inventory/validateBarcodes

Parameters
  • registry_id – ID of the registry to validate barcodes in.

  • barcodes – The barcodes to validate

Returns

A list of bardcode validation results

Return type

List[BarcodeValidationResult]