benchling_sdk.apps.status.helpers module¶

ref(reference: Union[AaSequence, Blob, Box, Container, CustomEntity, DnaSequence, DnaOligo, Entry, Folder, Location, Mixture, Plate, RnaOligo, Molecule, RnaSequence, Request, WorkflowOutput, WorkflowTask]) → str¶

Ref.

Helper method for easily serializing a referenced object into a string embeddable in AppSessionMessageCreate content.

Example:

dna_sequence = benchling.dna_sequences.get_by_id(“seq_1234”) AppSessionMessageCreate(f”This is my DNA sequence {ref(dna_sequence)} for analysis”)

ref_by_id(reference_id: str) → str¶

Ref by ID.

Helper method for serializing a reference to an object into a string embeddable in AppSessionMessageCreate content via the reference object’s id. This is helpful when clients don’t already have access to the referenced object.

Example:

dna_sequence_id: str = “seq_asQya4lk” AppSessionMessageCreate(f”This is my DNA sequence {ref_by_id(dna_sequence_id)} for analysis”)