openprotein.embeddings.EmbeddingsGenerateFuture#

class openprotein.embeddings.EmbeddingsGenerateFuture(session, job, sequences=None)[source]#

Future for manipulating results for embeddings generate-related requests.

Parameters:
  • session (APISession)

  • job (GenerateJob)

  • sequences (list[bytes] | list[str] | None)

__init__(session, job, sequences=None)#
Parameters:
  • session (APISession)

  • job (ScoreJob | ScoreSingleSiteJob | GenerateJob)

  • sequences (list[bytes] | list[str] | None)

Methods

__init__(session, job[, sequences])

cancelled()

Check if the job has been cancelled.

create(session[, job_id, job, response])

Create an instance of the appropriate Future class based on the job type.

done()

Check if the job has completed.

get([verbose])

Return all results from the job by consuming the stream.

refresh()

Refresh the job status and internal job object.

stream()

Return the results from this job as a generator.

wait([interval, timeout, verbose])

Wait for the job to complete, then fetch results.

wait_until_done([interval, timeout, verbose])

Wait for the job to complete.

Attributes

created_date

The creation timestamp of the job.

end_date

The end timestamp of the job.

id

The unique identifier of the job.

job_id

The unique identifier of the job.

job_type

The type of the job.

progress_counter

The progress counter of the job.

sequences

start_date

The start timestamp of the job.

status

The current status of the job.

job

session