stac-utils / stac-utils/stac-fastapi
Add zstd compression support
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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