planet-client-python
planet-client-python copied to clipboard
consider removing jq dependence for workflows
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
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