openprotein.jobs
SDK release/v0.18.0Use session.jobs.list(...) and session.jobs.get_job(...) to inspect job records. Use session.jobs.get(...) to load a future and read its results. A job record describes the submission and its status; the future provides the result-reading methods.
wait_until_done() waits for a terminal status and does not establish success: a failed or canceled job is also done. It does not fetch results. Check the job status before interpreting completion; result readers have their own failure and timeout behavior.
Given a stored job ID, refresh and check the status before reading results:
from openprotein.errors import AuthError, JobFailedException, TimeoutException
from openprotein.jobs import JobStatus
try:
future = session.jobs.get(job_id)
future.wait_until_done(timeout=600)
if future.status == JobStatus.SUCCESS:
results = future.get()
else:
print("Job ended:", future.status, future.job.failure_message)
except TimeoutException as error:
print("Polling timed out:", error)
except JobFailedException as error:
print("Job failed:", error)
except AuthError as error:
print("Authentication failed:", error)refresh() updates the stored job record; wait_until_done() polls and updates it without reading results. The base Future.get() raises JobFailedException for FAILURE; some specialized readers have their own checks. TimeoutException covers polling timeouts. Network requests can also raise requests.exceptions.Timeout, an API HTTPError, or openprotein.base.TimeoutError for a gateway timeout. A timeout does not imply that the job was canceled.
An API request can raise APIError; reading a failed position can also surface APIError. FutureUnit.wait() raises RuntimeError for a failed or canceled unit; FutureUnit.get() delegates to get_item() without that state check. For an output collection or page read (job_output_page), HTTP 409 is translated to JobOutputsNotReady; a per-position read (job_output_get) does not perform that translation and leaves the HTTPError. InvalidJob indicates a missing or invalid job. NotPrepared is exported, but no public method raises it. These paths do not imply that every result reader raises JobFailedException.
7source
API interface to get jobs.
sessionAPISessionmethodlist(status=None, job_type=None, assay_id=None, more_recent_than=None, page_size=None, page_offset=None, limit=None, *, name=None)→builtins.list[Job]source
List jobs.
name matches a job's name exactly; set one with update. Names are
not unique, so the result stays a list.
Pass page_size / page_offset to paginate. limit is a deprecated
alias for page_size — pass one, not both.
methoditer_job_outputs(job_id, output_name, *, follow=False, interval=5)→Iterator[JobOutput]source
Stream decoded outputs in submission order, retaining duplicate positions.
HTTP resolves authorized metadata; the storage adapter downloads and
verifies artifact bytes directly, a few downloads at a time and at most
twice that many ahead of the caller. output_name=None reads the
method's default output.
An emitted output grows while its job runs. The stream ends at the items
registered now, or with follow reads again every interval seconds
until the output is complete.
job_idstroutput_namestr | Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVALmethodget_job_output(job_id, position, output_name)→JobOutputsource
Read the stable public (job, position, output) handle.
job_idstrpositionintoutput_namestrmethoditer_job_units(job_id)→Iterator[Unit]source
Read the job's execution records in position order, without waiting for outputs.
job_idstrmethodupdate(job_id, name=None, description=None)→Jobsource
Set a job's name and description.
Only the arguments given are sent, so renaming a job leaves its description alone.
job_idstrnamestr | None= Nonedescriptionstr | None= Nonemethodget(job_id, verbose=False)→Futuresource
Get job by ID.
This retrieves the job and loads it as a future so you can do wait and get.
Supported models-task records load the corresponding task future. Records
owned by compatibility schemas retain their compatibility future, including
when they carry provider and method metadata. GP training loads
PredictorModel, GP cross-validation loads CVResultFuture, and prompt
sampling loads Prompt. Each class documents its result contract. A
conflicting or unresolved models identity remains a generic, trackable
TaskFuture.
job_idstrverbosebool= Falsewait_until_done() returns true for any terminal status, including failure or cancellation, not only successful completion as the pinned member docstring says. Check status for success.
21source
Bases: BaseModel
attributejob_id:strsource
attributejob_type:strsource
attributecreated_date:datetimesource
attributestart_date:datetime | None= Nonesource
attributeend_date:datetime | None= Nonesource
attributeprerequisite_job_id:str | None= Nonesource
attributeprogress_message:str | None= Nonesource
attributeprogress_counter:int | None= Nonesource
attributesequence_length:int | None= Nonesource
attributefailure_message:str | None= Nonesource
attributename:str | None= Nonesource
attributedescription:str | None= Nonesource
attributeunits_digest:str | None= Nonesource
attributeunit_count:int | None= Nonesource
attributeprovider_id:str | None= Nonesource
attributepath:str | None= Nonesource
attributeversion:str | None= Nonesource
attributeoutputs:list[str] | None= Nonesource
attributemetadata:dict[str, Any] | None= Nonesource
5source
Bases: ABC, Generic[V]
Base class for all Futures returning results from a job.
sessionAPISessionjobJobmethoddone()→boolsource
Check if the job has completed.
True if the job is done, False otherwise.
methodrefresh()source
Refresh the job status and internal job object.
methodget(verbose=False, **kwargs)→Vsource
Return the results from this job.
verbosebool= FalseFlag to enable verbose output, by default False.
**kwargs= {}Additional keyword arguments.
methodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
methodwait(interval=5, timeout=None, verbose=False, **kwargs)→Vsource
Wait for the job to complete, then fetch results.
intervalint= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint | None= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
**kwargs= {}Keyword arguments passed to get.
The results of the job.
2source
Bases: Future[list[V]], ABC, Generic[V]
Abstract base class for Futures that support streaming results.
sessionAPISessionjobJobmethodstream(**kwargs)→Iterator[V]source
Return the results from this job as a generator.
**kwargs= {}Keyword arguments passed to the streaming implementation.
A generator that yields job results.
methodwait(interval=5, timeout=None, verbose=False, **kwargs)→list[V]source
Wait for the job to complete, then fetch results.
intervalint= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint | None= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
**kwargs= {}Keyword arguments passed to get.
The results of the job.
3source
Bases: StreamingFuture[tuple[K, V]], ABC, Generic[K, V]
Base future for jobs with a key-to-result mapping.
This class provides methods to retrieve results from jobs where each result is associated with a unique key (e.g., sequence to embedding).
methodget_item(k, **kwargs)→Vsource
Retrieve a single item by its key.
kKThe key of the item to retrieve.
methodstream(**kwargs)→Iterator[tuple[K, V]]source
Retrieve results for this job as a stream.
A generator that yields (key, value) tuples.
methodwait(interval=5, timeout=None, verbose=False, **kwargs)→list[tuple[K, V]]source
Wait for the job to complete, then fetch results.
intervalint= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint | None= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
**kwargs= {}Keyword arguments passed to get.
The results of the job.
source
Bases: str, Enum
Type of job.
The job types this client has names for. Job.job_type is a plain string
and the server adds types on its own release cycle, so this is a vocabulary
for readability, for filtering, and for the Literal discriminators on
typed Job subclasses. Membership is not a validity check.
Batch jobs, outputs and units describe submitted tasks and their results.
| Record | Field | Meaning |
|---|---|---|
| BatchJob | num_records | Number of records in the batch, when known. |
| Unit | position | Position of this unit in the job. |
| Unit | unit_id | Unit identifier. |
| Unit | state | Current unit execution state. |
| Unit | error | Error details, when present. |
Use job from the ESM2 embedding example and choose a read based on what you need:
Every position. wait() waits for the job and reads its primary output, with one value per submitted position. Use get() if the job has already succeeded.
embeddings = job.wait(timeout=600)
print(embeddings[0].shape)One position. Use a zero-based position. unit(0).wait() waits for and reads just the first result. If that result is already available, use get_item(0).
embedding = job.unit(0).wait(timeout=600)
print(embedding.shape)One named output. Check job.outputs for the names this job provides. Pass output= to select one by name. Different outputs can have different types. For this ESM2 job, embeddings is the primary output.
print(job.outputs)
embeddings = job.wait(output="embeddings", timeout=600)
print(embeddings[0].shape)See the primary outputs and result types for other model tasks.
29source
Bases: MappedFuture[int, Any]
Handle on a models API task job.
Results are keyed by unit position. get_item/stream/get fetch
a method's outputs, decoded by the codec each stored value names. The
method comes from the submission, else the job's provider_id and
path, else its job type. Reads go to the data routes by output name; an
unnamed output is the default the bare results route names. outputs
come from the submitting method, then the job record, then the model
listing.
A job outside the models API has status and waiting here, and its results
through session.jobs.get.
dataset is the assay its sequences came from: as set, the one a future it
is set to carries, or else the one its args name.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonepropertyargs:dict[str, Any]source
The job's validated request, loaded on first access.
propertydataset:AssayDataset | Nonesource
The assay the job's sequences came from, or None; read on first access.
propertyversion:str | Nonesource
The submitted method's version, refreshing the job if it is missing.
propertyoutputs:list[str]source
Output names supplied by the method or job.
methodunit(position, output=None)→FutureUnitsource
Handle on one unit's selected output.
A named output fetches nothing; None resolves the default once.
positionintoutputstr | None= Nonemethoditer_units(output=None)→Iterator[FutureUnit]source
One handle per submitted unit, in position order.
outputstr | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
Every position's decoded value for output, default the method's own.
verbosebool= Falseoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, **kwargs)→Anysource
Wait for the job to complete, then fetch results.
intervalint= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint | None= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
**kwargsAny= {}Keyword arguments passed to get.
The results of the job.
methoditer_outputs(output)→Iterator[Any]source
Read a named output in submitted position order.
outputstrmethodget_item(k, output=None, **kwargs)→Anysource
Retrieve a single item by its key.
kKThe key of the item to retrieve.
outputstr | None= None**kwargsAnymethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
Stream decoded outputs in position order; None is the default output.
An emitted output grows while the job runs. follow keeps reading,
every interval seconds, until it is complete.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
attributejob:Job= jobsource
inherited from openprotein.jobs.MappedFuture
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Noneattributesession:APISession= sessionsource
inherited from openprotein.jobs.MappedFuture
propertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
8source
Bases: Generic[V]
One (job_id, position, output) of a models job.
A unit finishes on its own: its output is readable as soon as it is stored, whether or not its job's other units are done. Retrieval and status touch only this position, so holding a handle on one unit of a million-unit job costs one request.
propertyjob_id:strsource
Identifier of the job containing this unit.
propertyposition:intsource
Zero-based position of this unit within the job.
propertyoutput:strsource
Name of the output selected for this unit.
propertyunit_id:strsource
The immutable authored identity of this submitted unit.
methoddone()→boolsource
Whether this unit's selected output is readable.
methodget()→Vsource
Fetch and decode this unit's selected output.
methodwait(interval=5, timeout=None, verbose=False)→Vsource
Block until this unit's output is readable, then return it.
the unit was still pending at timeout.
the unit failed.
intervalint= 5timeoutint | None= Noneverbosebool= False29source
Bases: _ResultFuture[np.ndarray]
Attention arrays with the model's head and residue dimensions.
Bare reads return the attn output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[np.ndarray]
Embedding arrays, one per submitted position.
Bare reads return the embeddings output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[_Scores]
Scores in the submitted insertion/deletion order.
Bare reads return the score output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[_Scores]
Sequence log-likelihoods, retaining replicate dimensions.
Bare reads return the loglikelihood output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[np.ndarray]
Per-position logit arrays.
Bare reads return the logits output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[_Predictions]
Property-keyed predictions, one dictionary per position.
Bare reads return the predictions output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[str]
Generated sequence strings in sample order.
Bare reads return the sequences output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[_Predictions]
Property-keyed predictions in single-site mutation order.
Bare reads return the predictions output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[_Scores]
Scores in the submitted single-site mutation order.
Bare reads return the score output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[Complex]
Generated complexes, one per design position.
Bare reads return the structures output; pass output= to read another
name in outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAny29source
Bases: _ResultFuture[Structure]
Predicted structure collections, one per submitted input.
Bare reads return the structures output; pass output= to read another
name in outputs. RoseTTAFold3's score and metrics read as one
pandas.DataFrame per input.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read every position of the selected output.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Read one submitted position of the selected output.
kintoutputstr | None= None**kwargsAnymethoditer_units(output=None)→Iterator[FutureUnit[Any]]source
inherited from openprotein.jobs.futures._ResultFuture
One handle per submitted unit, in position order.
outputstr | None= Nonemethodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Yield selected values in submitted position order.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnit[Any]source
inherited from openprotein.jobs.futures._ResultFuture
Handle on one unit's selected output.
positionintoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, *, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.futures._ResultFuture
Wait for completion and read the selected output.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAnySVDFitFuture, UMAPFitFuture and GPFitFuture return the fitted model from bare get() and wait() calls. With output=..., these methods return values for the selected fit output. CrossvalidateFuture returns CrossvalidateResults, parallel arrays with one row per sequence and measurement.
31source
Bases: FitFuture['SVDModel']
Handle on an SVD fit job.
The fit emits its own source rows, projected, as embeddings.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodtransform(data)→EmbeddingFuturesource
Project sequences, or an assay's, through this fit.
The projection is submitted now and runs once the fit has finished.
datalist[str] | list[bytes] | AssayDatasetmethodembed(data)→EmbeddingFuturesource
Same as transform.
datalist[str] | list[bytes] | AssayDatasetpropertyargs:dict[str, Any]source
inherited from openprotein.jobs.TaskFuture
The job's validated request, loaded on first access.
methodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydataset:AssayDataset | Nonesource
inherited from openprotein.jobs.TaskFuture
The assay the job's sequences came from, or None; read on first access.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
methodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Read the fitted model, or a named output of its fit.
verbosebool= Falseoutputstr | None= Nonemethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.TaskFuture
Retrieve a single item by its key.
kKThe key of the item to retrieve.
outputstr | None= None**kwargsAnymethoditer_outputs(output)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Read a named output in submitted position order.
outputstrmethoditer_units(output=None)→Iterator[FutureUnit]source
inherited from openprotein.jobs.TaskFuture
One handle per submitted unit, in position order.
outputstr | None= Noneattributejob:Job= jobsource
inherited from openprotein.jobs.MappedFuture
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyoutputs:list[str]source
inherited from openprotein.jobs.FitFuture
Output names of this fit, as its job names them.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Noneattributesession:APISession= sessionsource
inherited from openprotein.jobs.MappedFuture
propertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Stream decoded outputs in position order; None is the default output.
An emitted output grows while the job runs. follow keeps reading,
every interval seconds, until it is complete.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnitsource
inherited from openprotein.jobs.TaskFuture
Handle on one unit's selected output.
A named output fetches nothing; None resolves the default once.
positionintoutputstr | None= Nonepropertyunits:list[Unit]source
inherited from openprotein.jobs.TaskFuture
Records for the job's submitted positions, loaded on first access.
propertyversion:str | Nonesource
inherited from openprotein.jobs.TaskFuture
The submitted method's version, refreshing the job if it is missing.
methodwait(interval=5, timeout=None, verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Wait for the fit, then read the fitted model, or a named output of its fit.
intervalfloat= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAnymethodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
31source
Bases: FitFuture['UMAPModel']
Handle on a UMAP fit job; its outputs are the fit set's projections.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonemethodtransform(data)→EmbeddingFuturesource
Map sequences, or an assay's, through this fit.
The projection is submitted now and runs once the fit has finished.
datalist[str] | list[bytes] | AssayDatasetmethodembed(data)→EmbeddingFuturesource
Same as transform.
datalist[str] | list[bytes] | AssayDatasetpropertyargs:dict[str, Any]source
inherited from openprotein.jobs.TaskFuture
The job's validated request, loaded on first access.
methodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydataset:AssayDataset | Nonesource
inherited from openprotein.jobs.TaskFuture
The assay the job's sequences came from, or None; read on first access.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
methodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Read the fitted model, or a named output of its fit.
verbosebool= Falseoutputstr | None= Nonemethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.TaskFuture
Retrieve a single item by its key.
kKThe key of the item to retrieve.
outputstr | None= None**kwargsAnymethoditer_outputs(output)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Read a named output in submitted position order.
outputstrmethoditer_units(output=None)→Iterator[FutureUnit]source
inherited from openprotein.jobs.TaskFuture
One handle per submitted unit, in position order.
outputstr | None= Noneattributejob:Job= jobsource
inherited from openprotein.jobs.MappedFuture
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyoutputs:list[str]source
inherited from openprotein.jobs.FitFuture
Output names of this fit, as its job names them.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Noneattributesession:APISession= sessionsource
inherited from openprotein.jobs.MappedFuture
propertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Stream decoded outputs in position order; None is the default output.
An emitted output grows while the job runs. follow keeps reading,
every interval seconds, until it is complete.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnitsource
inherited from openprotein.jobs.TaskFuture
Handle on one unit's selected output.
A named output fetches nothing; None resolves the default once.
positionintoutputstr | None= Nonepropertyunits:list[Unit]source
inherited from openprotein.jobs.TaskFuture
Records for the job's submitted positions, loaded on first access.
propertyversion:str | Nonesource
inherited from openprotein.jobs.TaskFuture
The submitted method's version, refreshing the job if it is missing.
methodwait(interval=5, timeout=None, verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Wait for the fit, then read the fitted model, or a named output of its fit.
intervalfloat= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAnymethodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
29source
Handle on a GP's training job.
wait returns the fitted GPModel. A reloaded training job loads as
PredictorModel instead.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonepropertyargs:dict[str, Any]source
inherited from openprotein.jobs.TaskFuture
The job's validated request, loaded on first access.
methodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydataset:AssayDataset | Nonesource
inherited from openprotein.jobs.TaskFuture
The assay the job's sequences came from, or None; read on first access.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
methodget(verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Read the fitted model, or a named output of its fit.
verbosebool= Falseoutputstr | None= Nonemethodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.TaskFuture
Retrieve a single item by its key.
kKThe key of the item to retrieve.
outputstr | None= None**kwargsAnymethoditer_outputs(output)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Read a named output in submitted position order.
outputstrmethoditer_units(output=None)→Iterator[FutureUnit]source
inherited from openprotein.jobs.TaskFuture
One handle per submitted unit, in position order.
outputstr | None= Noneattributejob:Job= jobsource
inherited from openprotein.jobs.MappedFuture
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyoutputs:list[str]source
inherited from openprotein.jobs.FitFuture
Output names of this fit, as its job names them.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Noneattributesession:APISession= sessionsource
inherited from openprotein.jobs.MappedFuture
propertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Stream decoded outputs in position order; None is the default output.
An emitted output grows while the job runs. follow keeps reading,
every interval seconds, until it is complete.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnitsource
inherited from openprotein.jobs.TaskFuture
Handle on one unit's selected output.
A named output fetches nothing; None resolves the default once.
positionintoutputstr | None= Nonepropertyunits:list[Unit]source
inherited from openprotein.jobs.TaskFuture
Records for the job's submitted positions, loaded on first access.
propertyversion:str | Nonesource
inherited from openprotein.jobs.TaskFuture
The submitted method's version, refreshing the job if it is missing.
methodwait(interval=5, timeout=None, verbose=False, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.FitFuture
Wait for the fit, then read the fitted model, or a named output of its fit.
intervalfloat= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAnymethodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
29source
Bases: TaskFuture
Handle on a cross-validation job; its id is the evaluation's.
get and wait return its CrossvalidateResults. The run's statistics are read
with GPModel.evaluations. A reloaded cross-validation job loads as
CVResultFuture instead.
methodget(verbose=False, output=None, **kwargs)→CrossvalidateResultssource
Read the cross-validated prediction of each assay row.
verbosebool= Falseoutputstr | None= None**kwargsAnymethodwait(interval=5, timeout=None, verbose=False, **kwargs)→CrossvalidateResultssource
Wait for cross-validation and read its predictions.
intervalint= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= False**kwargsAnypropertyargs:dict[str, Any]source
inherited from openprotein.jobs.TaskFuture
The job's validated request, loaded on first access.
methodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydataset:AssayDataset | Nonesource
inherited from openprotein.jobs.TaskFuture
The assay the job's sequences came from, or None; read on first access.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
methodget_item(k, output=None, **kwargs)→Anysource
inherited from openprotein.jobs.TaskFuture
Retrieve a single item by its key.
kKThe key of the item to retrieve.
outputstr | None= None**kwargsAnymethoditer_outputs(output)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Read a named output in submitted position order.
outputstrmethoditer_units(output=None)→Iterator[FutureUnit]source
inherited from openprotein.jobs.TaskFuture
One handle per submitted unit, in position order.
outputstr | None= Noneattributejob:Job= jobsource
inherited from openprotein.jobs.MappedFuture
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyoutputs:list[str]source
inherited from openprotein.jobs.TaskFuture
Output names supplied by the method or job.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Noneattributesession:APISession= sessionsource
inherited from openprotein.jobs.MappedFuture
propertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodstream(output=None, *, follow=False, interval=5, **kwargs)→Iterator[Any]source
inherited from openprotein.jobs.TaskFuture
Stream decoded outputs in position order; None is the default output.
An emitted output grows while the job runs. follow keeps reading,
every interval seconds, until it is complete.
outputstr | None= Nonefollowbool= Falseintervalfloat= config.POLLING_INTERVAL**kwargsAnymethodunit(position, output=None)→FutureUnitsource
inherited from openprotein.jobs.TaskFuture
Handle on one unit's selected output.
A named output fetches nothing; None resolves the default once.
positionintoutputstr | None= Nonepropertyunits:list[Unit]source
inherited from openprotein.jobs.TaskFuture
Records for the job's submitted positions, loaded on first access.
propertyversion:str | Nonesource
inherited from openprotein.jobs.TaskFuture
The submitted method's version, refreshing the job if it is missing.
methodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
7source
Cross-validation results as parallel arrays, one per sequence x measurement.
row_indexnp.ndarraysequencenp.ndarraymeasurement_namenp.ndarrayfoldnp.ndarray | Noneynp.ndarrayy_munp.ndarrayy_varnp.ndarrayattributerow_index:np.ndarraysource
Position in the uploaded assay of the row each evaluation came from. This is
the index the folds argument of crossvalidate is given in.
attributesequence:np.ndarraysource
Sequence for each evaluation.
attributemeasurement_name:np.ndarraysource
Measurement/property name for each evaluation.
attributefold:np.ndarray | Nonesource
Held-out test fold the row was scored in, or -1 if the row was excluded, in
which case y_mu and y_var are NaN. None for a crossvalidation the
service reported without fold assignments.
attributey:np.ndarraysource
Observed value.
attributey_mu:np.ndarraysource
Cross-validated predicted mean.
attributey_var:np.ndarraysource
Cross-validated predicted variance.
3source
Bases: TaskFuture, Generic[_M]
Handle on a job that fits a model; wait returns the fitted model.
A fit has no model card method; its job names its outputs.
sessionAPISessionjobJobmax_workersint= config.MAX_CONCURRENT_WORKERSsubmission_Submission | None= Nonepropertyoutputs:list[str]source
Output names of this fit, as its job names them.
methodget(verbose=False, output=None, **kwargs)→Anysource
Read the fitted model, or a named output of its fit.
verbosebool= Falseoutputstr | None= Nonemethodwait(interval=5, timeout=None, verbose=False, output=None, **kwargs)→Anysource
Wait for the fit, then read the fitted model, or a named output of its fit.
intervalfloat= config.POLLING_INTERVALtimeoutint | None= Noneverbosebool= Falseoutputstr | None= None**kwargsAnyJob records and reloading
Model-task records use Job. Supported task records reload through session.jobs.get(...) as the corresponding task future. A reloaded job does not always retain the exact future class returned at submission: GP training uses PredictorModel, GP cross-validation uses CVResultFuture, and prompt sampling uses the compatibility Prompt reader. Refer to each reader's result contract.