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

Add parquet and zarr media types #1280

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

jsignell
Copy link
Member

Description:

In working on xpystac I thought it might be useful to add zarr and parquet to the media type enum

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@@ -15,9 +15,11 @@ class MediaType(StringEnum):
JPEG = "image/jpeg"
JPEG2000 = "image/jp2"
JSON = "application/json"
PARQUET = "application/x-parquet"
Copy link
Member

Choose a reason for hiding this comment

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

Some quick searching turned up https://lists.apache.org/thread/lrfsjhzoq20o95z5zn9zyrb8rdolqzz7 -- so eventually this may change to a vnd.* type. Can you throw in a link to the reference for the x-parquet so we know where that came from?

pystac/media_type.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e3ccf2c) 91.10% compared to head (50f3f85) 91.11%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1280   +/-   ##
=======================================
  Coverage   91.10%   91.11%           
=======================================
  Files          51       51           
  Lines        6984     6986    +2     
  Branches      999      999           
=======================================
+ Hits         6363     6365    +2     
  Misses        444      444           
  Partials      177      177           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gadomski gadomski added this pull request to the merge queue Nov 17, 2023
Merged via the queue into stac-utils:main with commit df085f4 Nov 17, 2023
19 checks passed
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.

2 participants