All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
get_running_jobs_jobs_running_get | GET /jobs/running | Get Running Jobs |
is_job_running_job_job_id_is_running_get | GET /job/{job_id}/is-running | Is Job Running |
predict_run_folding_post | POST /run-folding | Predict |
object get_running_jobs_jobs_running_get()
Get Running Jobs
import time
import os
import esmfold_microservice
from esmfold_microservice.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = esmfold_microservice.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with esmfold_microservice.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = esmfold_microservice.DefaultApi(api_client)
try:
# Get Running Jobs
api_response = api_instance.get_running_jobs_jobs_running_get()
print("The response of DefaultApi->get_running_jobs_jobs_running_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->get_running_jobs_jobs_running_get: %s\n" % e)
This endpoint does not need any parameter.
object
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IsJobRunningResponse is_job_running_job_job_id_is_running_get(job_id)
Is Job Running
import time
import os
import esmfold_microservice
from esmfold_microservice.models.is_job_running_response import IsJobRunningResponse
from esmfold_microservice.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = esmfold_microservice.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with esmfold_microservice.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = esmfold_microservice.DefaultApi(api_client)
job_id = 'job_id_example' # str |
try:
# Is Job Running
api_response = api_instance.is_job_running_job_job_id_is_running_get(job_id)
print("The response of DefaultApi->is_job_running_job_job_id_is_running_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->is_job_running_job_job_id_is_running_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
job_id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RunEsmFoldPredictionResponse predict_run_folding_post(run_esm_fold_prediction_request)
Predict
import time
import os
import esmfold_microservice
from esmfold_microservice.models.run_esm_fold_prediction_request import RunEsmFoldPredictionRequest
from esmfold_microservice.models.run_esm_fold_prediction_response import RunEsmFoldPredictionResponse
from esmfold_microservice.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = esmfold_microservice.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with esmfold_microservice.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = esmfold_microservice.DefaultApi(api_client)
run_esm_fold_prediction_request = esmfold_microservice.RunEsmFoldPredictionRequest() # RunEsmFoldPredictionRequest |
try:
# Predict
api_response = api_instance.predict_run_folding_post(run_esm_fold_prediction_request)
print("The response of DefaultApi->predict_run_folding_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->predict_run_folding_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
run_esm_fold_prediction_request | RunEsmFoldPredictionRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]