API Documentation
Overview
Python SDK Reference
End to End example
List custom tools
Get a custom tool
Create a custom tool
Update a custom tool
Delete a custom tool
Create a source upload
Build a custom tool
List build logs
Cancel a custom tool build
Run a custom tool
Publish a custom tool version
List custom tool versions
Job Results
/api/resultThe POST API endpoint /result returns a presigned URL to the results folder for a given jobName.
Required Parameters:
jobName
(string)
The name of the job to get results for
Optional Parameters:
fileName
(string)
Path to a specific file in the job results. If not provided, returns all results.
jobEmail
(string)
Email of another member of your team. Optionally retrieve results for jobs from other members of your organization.
pdbsOnly
(boolean)
Return only PDB files from the job results. Only available for batch jobs.
HTTP Response Status Codes
| Status code | Description |
|---|---|
| 200 | Successfully retrieved presigned URL to results |
| 400 | Bad request |
Download all results for a job as a zip file.
1import requests
2from urllib.request import urlretrieve
3
4api_key = "***************"
5headers = {'x-api-key': api_key}
6base_url = "https://app.tamarind.bio/api/"
7
8jobName = "myJobName"
9savePath = f"./{jobName}.zip"
10params = {
11 "jobName": jobName
12}
13response = requests.post(base_url + "result", headers=headers, json=params)
14print(response.text)
15if response.status_code == 200:
16 results = requests.get(response.text.replace('"', ''))
17 if results.status_code == 200:
18 with open(savePath, 'wb') as file:
19 file.write(results.content)