Open huard opened 1 year 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.
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 ?
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
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.