Skip to main content

Quart-Compress

Build Status codecov PyPI version Python Support black

Description

Quart is a Python ASGI web microframework. It is intended to provide the easiest way to use asyncio functionality in a web context, especially with existing Flask apps. This is possible as the Quart API is a superset of the Flask API.

-- Quart Project

As I wanted to seamlessly migrate from Flask to Quart and noticed, that there are a few issues in using Flask-Compress together with Quart, I decided to create my own Quart-Compress packages, which is based on the Flask-Compress project.

Installation

Installing the package is as easy as:

$ pip install quart-compress2

Usage

To compress your Quart responses, you only need to compress your Quart object at the beginning using the Compress class:

from quart import Quart
from quart_compress import Compress

app = Quart(__name__)
Compress(app)

Release files for quart-compress2 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quart-compress2 1.1.0
File Size Uploaded
quart-compress2-1.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quart-compress2 1.1.0
File Interpreter ABI Platform
quart_compress2-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size:15.4 kB

Release files / quart-compress2-1.1.0.tar.gz

Download URL quart-compress2-1.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0de2b7500cf6b2c200fdc03dc9ed907ec08073baf31923f09584ae3f1b210453
BLAKE2b-256 checksum
How to use checksums
67e7abc1123db7417e322a3826dabcff1316da59b0de3beb6bc55efcf50fa4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / quart_compress2-1.1.0-py3-none-any.whl

Download URL quart_compress2-1.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86fabd942d841549caa63593235e607c3238d076906456b0684d067a51048c6b
BLAKE2b-256 checksum
How to use checksums
bda7ec026b5435baa691924ca92333015c065a34a4186e8d636d993e1237c101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page