Quart 0.20.0
pip install Quart
Released:
A Python ASGI web framework with the same API as Flask
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Project description
Quart
Quart is an async Python web application framework. Using Quart you can,
- render and serve HTML templates,
- write (RESTful) JSON APIs,
- serve WebSockets,
- stream request and response data,
- do pretty much anything over the HTTP or WebSocket protocols.
Quickstart
Install from PyPI using an installer such as pip.
$ pip install quart
Save the following as app.py
. This shows off rendering a template, returning
JSON data, and using a WebSocket.
from quart import Quart, render_template, websocket
app = Quart(__name__)
@app.route("/")
async def hello():
return await render_template("index.html")
@app.route("/api")
async def json():
return {"hello": "world"}
@app.websocket("/ws")
async def ws():
while True:
await websocket.send("hello")
await websocket.send_json({"hello": "world"})
$ quart run
* Running on http://127.0.0.1:5000 (CTRL + C to quit)
To deploy this app in a production setting see the deployment documentation.
Contributing
Quart is developed on GitHub. If you come across a bug, or have a feature request, please open an issue. To contribute a fix or implement a feature, follow our contributing guide.
Help
If you need help with your code, the Quart documentation and cheatsheet are the best places to start. You can ask for help on the Discussions tab or on our Discord chat.
Relationship with Flask
Quart is an asyncio reimplementation of the popular Flask web application framework. This means that if you understand Flask you understand Quart.
Like Flask, Quart has an ecosystem of extensions for more specific needs. In addition, a number of the Flask extensions work with Quart.
Migrating from Flask
It should be possible to migrate to Quart from Flask by a find and replace of
flask
to quart
and then adding async
and await
keywords. See the
migration documentation for more help.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
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
File details
Details for the file quart-0.20.0.tar.gz
.
File metadata
- Download URL: quart-0.20.0.tar.gz
- Upload date:
- Size: 63.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08793c206ff832483586f5ae47018c7e40bdd75d886fee3fabbdaa70c2cf505d |
|
MD5 | 05e155791d94a534c5522919658ed54f |
|
BLAKE2b-256 | 1d9d12e1143a5bd2ccc05c293a6f5ae1df8fd94a8fc1440ecc6c344b2b30ce13 |
Provenance
The following attestation bundles were made for quart-0.20.0.tar.gz
:
Publisher:
publish.yaml
on pallets/quart
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
quart-0.20.0.tar.gz
- Subject digest:
08793c206ff832483586f5ae47018c7e40bdd75d886fee3fabbdaa70c2cf505d
- Sigstore transparency entry: 157455286
- Sigstore integration time:
- Permalink:
pallets/quart@22aa3859884ee3d670c68e48d1945bc65af51a1a
- Branch / Tag:
refs/tags/0.20.0
- Owner: https://github.com/pallets
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yaml@22aa3859884ee3d670c68e48d1945bc65af51a1a
- Trigger Event:
push
- Statement type:
File details
Details for the file quart-0.20.0-py3-none-any.whl
.
File metadata
- Download URL: quart-0.20.0-py3-none-any.whl
- Upload date:
- Size: 78.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003c08f551746710acb757de49d9b768986fd431517d0eb127380b656b98b8f1 |
|
MD5 | 2264aa6acf75bdd15591a528784e8526 |
|
BLAKE2b-256 | 7ee9cc28f21f52913adf333f653b9e0a3bf9cb223f5083a26422968ba73edd8d |
Provenance
The following attestation bundles were made for quart-0.20.0-py3-none-any.whl
:
Publisher:
publish.yaml
on pallets/quart
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
quart-0.20.0-py3-none-any.whl
- Subject digest:
003c08f551746710acb757de49d9b768986fd431517d0eb127380b656b98b8f1
- Sigstore transparency entry: 157455288
- Sigstore integration time:
- Permalink:
pallets/quart@22aa3859884ee3d670c68e48d1945bc65af51a1a
- Branch / Tag:
refs/tags/0.20.0
- Owner: https://github.com/pallets
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yaml@22aa3859884ee3d670c68e48d1945bc65af51a1a
- Trigger Event:
push
- Statement type: