Skip to content

Conversation

@jreiberkyle
Copy link
Contributor

@jreiberkyle jreiberkyle commented Jun 17, 2022

Implements planet data filter cli command with permission and standard-quality filters as defaults.

part of #535

@jreiberkyle jreiberkyle self-assigned this Jun 17, 2022
return io.str_to_datetime(value)


class DateRangeFilter(click.Tuple):
Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cholmes usage docs

@jreiberkyle jreiberkyle requested review from cholmes and sgillies June 22, 2022 23:49
Copy link
Member

@cholmes cholmes left a 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!

Copy link
Contributor

@sgillies sgillies left a 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.

@jreiberkyle jreiberkyle changed the title planet data filter CLI command with asset, geom, and permission options planet data filter CLI command with all options Jun 25, 2022
@jreiberkyle jreiberkyle merged commit 50c73a5 into main Jun 25, 2022
@jreiberkyle jreiberkyle deleted the data-filter-cli-535 branch June 27, 2022 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants