{"id":19519785,"url":"https://github.com/dahlitzflorian/quart-compress","last_synced_at":"2026-02-22T12:44:06.853Z","repository":{"id":55375626,"uuid":"215128939","full_name":"DahlitzFlorian/quart-compress","owner":"DahlitzFlorian","description":"A package to compress responses in your Quart app with gzip","archived":false,"fork":false,"pushed_at":"2021-01-04T17:26:40.000Z","size":35,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T07:07:11.970Z","etag":null,"topics":["flask","gzip-compression","package","plugin","python","python-3","python3","quart"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DahlitzFlorian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-14T19:31:07.000Z","updated_at":"2024-10-06T00:10:57.000Z","dependencies_parsed_at":"2022-08-14T22:50:37.326Z","dependency_job_id":null,"html_url":"https://github.com/DahlitzFlorian/quart-compress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fquart-compress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fquart-compress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fquart-compress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fquart-compress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DahlitzFlorian","download_url":"https://codeload.github.com/DahlitzFlorian/quart-compress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250953510,"owners_count":21513378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","gzip-compression","package","plugin","python","python-3","python3","quart"],"created_at":"2024-11-11T00:21:47.666Z","updated_at":"2026-02-22T12:44:06.786Z","avatar_url":"https://github.com/DahlitzFlorian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quart-Compress\n\n[![Build Status](https://dev.azure.com/fdahlitz/quart-compress/_apis/build/status/DahlitzFlorian.quart-compress?branchName=master)](https://dev.azure.com/fdahlitz/quart-compress/_build/latest?definitionId=6\u0026branchName=master)\n[![codecov](https://codecov.io/gh/DahlitzFlorian/quart-compress/branch/master/graph/badge.svg)](https://codecov.io/gh/DahlitzFlorian/quart-compress)\n[![PyPI version](https://badge.fury.io/py/quart-compress2.svg)](https://badge.fury.io/py/quart-compress2)\n[![Python Support](https://img.shields.io/badge/Python-3.7%20|%203.8-blue)](https://img.shields.io/badge/Python-3.7%20|%203.8-blue)\n![black](https://img.shields.io/badge/code%20style-black-000000.svg)\n[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n\n## Description\n\n\u003e Quart is a Python ASGI web microframework.\n\u003e It is intended to provide the easiest way to use asyncio functionality in a web context, especially with existing Flask apps.\n\u003e This is possible as the Quart API is a superset of the Flask API.\n\n-- [Quart Project](https://github.com/pgjones/quart)\n\nAs I wanted to seamlessly migrate from Flask to Quart and noticed, that there are a few issues in using [Flask-Compress](https://github.com/shengulong/flask-compress) together with Quart, I decided to create my own Quart-Compress packages, which is based on the Flask-Compress project.\n\n\n## Installation\n\nInstalling the package is as easy as:\n\n```bash\n$ pip install quart-compress2\n```\n\n\n## Usage\n\nTo compress your Quart responses, you only need to compress your Quart object at the beginning using the `Compress` class:\n\n```python\nfrom quart import Quart\nfrom quart_compress import Compress\n\napp = Quart(__name__)\nCompress(app)\n```\n\nIf you have to add a bunch of configuration to your application, you may need to instantiate the `Compress` object later using `init_app`:\n\n```python\nfrom quart import Quart\nfrom quart_compress import Compress\n\napp = Quart(__name__)\ncompress = Compress()\n# some more configurations\ncompress.init_app(app)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahlitzflorian%2Fquart-compress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdahlitzflorian%2Fquart-compress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahlitzflorian%2Fquart-compress/lists"}