Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
151 stars 40 forks source link

How to get "Open-EO-Costs" from synchronous `download` #560

Open soxofaan opened 5 months ago

soxofaan commented 5 months ago

The response of synchronous processing (https://api.openeo.org/#tag/Data-Processing/operation/compute-result) has an optional "OpenEO-Costs" header with processing costs.

How could we expose that to user from a simple cube.download() call?

soxofaan commented 5 months ago

(Same question for the optional "Link" header in synchronous processing response, but I don't think there are implementations of that in the wild yet)

bossie commented 5 months ago

:eyes:

I was also thinking of the Request-Id header for debugging (successful) requests; looks like an easier version of the Link header.

soxofaan commented 5 months ago

and related, here I propose to add a OpenEO-Identifier header for sync requests to align better with batch job creation:

m-mohr commented 3 months ago

(Same question for the optional "Link" header in synchronous processing response, but I don't think there are implementations of that in the wild yet)

The Google Earth Engine driver implements it if you want to test it.