Fetch example file from R2 and return content directly.
import requests
url = "https://www.datalab.to/api/v1/pipeline_templates/{slug}/examples/{filename}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
import requests
url = "https://www.datalab.to/api/v1/pipeline_templates/{slug}/examples/{filename}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}