-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Labels
Description
What is the problem? Please describe.
To retrieve the processing units consumed by a request, one has to intercept the data retrieval and resolve the response headers before decoding the response manually like
def _get_actual_pus(data: DownloadResponse) -> float:
actual_pus = float(data.headers['x-processingunits-spent'])
Here's the solution
It would be nice to be able to just say e.g. data.pus.
Alternatives
Leave it as is, the interested person will find this solution
Reactions are currently unavailable