bird-house / birdy

Birdy provides a command-line tool to work with Web Processing Services.
http://birdy.readthedocs.io/en/latest/
Apache License 2.0
8 stars 3 forks source link

Add support for OGC API Processes #235

Open huard opened 1 year ago

huard commented 1 year ago

Description

OWSLib now has support for OGC API Processes. Not clear if the birdy WPSClient can be adapted, or if we'll need to create a new OGCAPIProcessesClient.

fmigneault commented 1 month ago

Rather than reimplementing your own: https://github.com/crim-ca/weaver/blob/d4ffd34e8cc33a3b08ab39779d72406023565d81/weaver/cli.py#L382

Docs: https://pavics-weaver.readthedocs.io/en/latest/cli.html#python-client-commands

Should be as "latest" as possible in terms of support of OGC API - Processes, since this is way I use to test anything proposed to the SWG + all the bells and whistles of CWL+WPS support.

huard commented 1 month ago

The birdy client creates a mock python module out of the process definitions. I didn't see that in weaver, correct ? But I suspect it'd be easier to build this on top of weaver than OWSLib ?

fmigneault commented 1 month ago

You can use this function for OWSLib to OGC API Processes: (ignore the first CWL output, the second JSON output is the OAP process description) https://github.com/crim-ca/weaver/blob/d4ffd34e8cc33a3b08ab39779d72406023565d81/weaver/processes/convert.py#L1026