Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your requests from API #138

Open
pelusanchez opened this issue Feb 17, 2025 · 0 comments
Open

Your requests from API #138

pelusanchez opened this issue Feb 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@pelusanchez
Copy link

Is your feature request related to a problem? Please describe.

I really ignore if there is any API method for this, but I did not found it.

It would be useful to list the existing requests, so we do not need to go to the UI to list what has been already requested.

Moreover, users will be able to:

  • Do not request again a request which has been already requested (at application level, not at cdsapi).
    • In the future, this might be useful at cdsapi.
  • Download a request which already exists, as we will know the request id of the existing request, without need to request again.
  • Check how many requests in each status users have. As an user, I would like to know if I have many failed request, so I can have an alert at application level to let me know.

Describe the solution you'd like

I think, having the following methods would be useful:

  • cdsapi.requests(limit=10) -> List[ReducedInfo]
  • cdsapi.get_request(job_identifier) ->RequestInfo

RequestInfo could have something like:

  • Requested catalogue entry
  • Requested data (variables, area, etc)

ReducedInfo could have:

  • job identifier
  • status

Describe alternatives you've considered

Making some API calls, but it could lead to errors if the API changes.

Additional context

If useful, I could provide some example code I am using for achieving this.

Organisation

Predictia Intelligent Data Solutions

@pelusanchez pelusanchez added the enhancement New feature or request label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant