stac-utils / stac-utils/stac-fastapi

Add zstd compression support

Open
#830 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
324
Forks
126
Avg merge
1d 22h
Merged PRs (30d)
10

Description

It seems you currently use https://github.com/fullonic/brotli-asgi [^1], which supports gzip and brotli compression. My recommendation is to switch to https://github.com/Zaczero/starlette-compress. It is backwards compatible, compatible with Python implementations other than CPython, generally better maintained, and also supports the new zstd compression.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading stac_fastapi/api/stac_fastapi/api/app.py around line 128, where the current brotli-asgi middleware is configured. Compare the proposed starlette-compress package and verify its compatibility with the existing FastAPI application. Done means the middleware supports zstd while retaining the currently supported gzip and brotli compression.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.