Quart-Compress.
Project description
Quart-Compress
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.
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quart-compress2-1.1.0.tar.gz.
File metadata
- Download URL: quart-compress2-1.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de2b7500cf6b2c200fdc03dc9ed907ec08073baf31923f09584ae3f1b210453
|
|
| MD5 |
f7d01aa5a412158d5d81c279de836c0c
|
|
| BLAKE2b-256 |
67e7abc1123db7417e322a3826dabcff1316da59b0de3beb6bc55efcf50fa4ae
|
File details
Details for the file quart_compress2-1.1.0-py3-none-any.whl.
File metadata
- Download URL: quart_compress2-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86fabd942d841549caa63593235e607c3238d076906456b0684d067a51048c6b
|
|
| MD5 |
3fe2e7d178f8013db81ddacdee029d54
|
|
| BLAKE2b-256 |
bda7ec026b5435baa691924ca92333015c065a34a4186e8d636d993e1237c101
|