planet-client-python icon indicating copy to clipboard operation
planet-client-python copied to clipboard

consider removing jq dependence for workflows

Open jreiberkyle opened this issue 2 years ago • 1 comments

Some workflows involving the CLI depend on jq e.g. to extract an order id from the order description printed by planet orders create. Consider cost/benefit of removing jq dependence, e.g. with an option for only printing the order id.

Ref: https://github.com/planetlabs/planet-client-python/issues/383#issuecomment-1083458899

jreiberkyle avatar Mar 30 '22 18:03 jreiberkyle

In discussion, we decided that there are 2 actionable aspects to this ticket:

  • reduce reliance of jq in CLI docs (especially for introductions) but recognize in the spirit of unix, composition allows extensibility
  • when possible, offer builtin functionality for common filtering, e.g. rather than --ids-only (or such) allow flexibility via partial responses either by field mask or view options https://google.aip.dev/157

And when possible, improve APIs themselves and pass partial response options rather than client-side filtering

ischneider avatar Jul 25 '24 20:07 ischneider