-
Notifications
You must be signed in to change notification settings - Fork 98
planet data filter CLI command with all options #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
planet/cli/data.py
Outdated
| return io.str_to_datetime(value) | ||
|
|
||
|
|
||
| class DateRangeFilter(click.Tuple): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgillies I'm extending the click Tuple and ParamType types to implement custom validation, help messages, and conversion for the field-based filters, which are specified by FIELD COMP VALUE, e.g. 'acquired gt 2022-02-02' - curious about your take on this approach.
| download the asset. | ||
|
|
||
|
|
||
| #### Filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cholmes usage docs
…cing with custom callbacks
cholmes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Excited for this one to land!
sgillies
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jreiberkyle the new param types looks like a great approach to me! 🚀 I don't have time to check the rest of the PR.
Implements
planet data filtercli command with permission and standard-quality filters as defaults.part of #535