8000 Your requests from API · Issue #138 · ecmwf/cdsapi · GitHub
[go: up one dir, main page]

Skip to content

Your requests from API #138

Open
Open

Description

@pelusanchez

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0