Skip to content
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

Optionally use stdin and stdout for validate, describe, and convert commands #79

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Sep 25, 2023

This makes it so the commands optionally read from stdin and write to stdout.

Examples:

# validate geoparquet from stdin
cat example.parquet | gpq validate

# describe geoparquet from stdin
cat example.parquet | gpq describe

# convert geoparquet from stdin to geojson stdout
cat example.parquet | gpq convert --from geoparquet --to geojson

# convert geojson to geoparquet stdout
gpq convert example.geojson --to geoparquet

Fixes #78.

@bdon
Copy link

bdon commented Sep 26, 2023

Tested locally, LGTM

@tschaub tschaub merged commit b1b08b5 into main Sep 26, 2023
4 checks passed
@tschaub tschaub deleted the command-io branch September 26, 2023 01:57
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.

Support for convert to stdout
2 participants