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â)