ASF Quart Framework
Project description
asfquart - a Quart framework for the ASF
This repository will house the future Quart framework for use within ASF web applications. Nothing much to see here yet...
For more detailed documentation, see the documentation page.
Primer
import asfquart
import asfquart.auth
def my_app():
# Construct the quart service. By default, the oauth gateway is enabled at /oauth.
asfquart.construct("my_app_service")
@asfquart.APP.route("/")
async def homepage():
return "Hello!"
@asfquart.APP.route("/secret")
@asfquart.auth.require(asfquart.auth.Requirements.committer)
async def secret_page():
return "Secret stuff!"
asfquart.APP.run(port=8000)
if __name__ == "__main__":
my_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
asfquart-0.1.5.tar.gz
(24.9 kB
view details)
Built Distribution
asfquart-0.1.5-py3-none-any.whl
(26.0 kB
view details)
File details
Details for the file asfquart-0.1.5.tar.gz
.
File metadata
- Download URL: asfquart-0.1.5.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca9c208ad4326b2f33ac7c65277a595c930648461e9129c842cf0ef8f110205 |
|
MD5 | 5fd53815540d47e10653f86159b6e3c1 |
|
BLAKE2b-256 | b0cfaf25840b01e2bf0eab1d136753ba5528f8b5ea8657e7f4a43a725ffc3cfe |
Provenance
File details
Details for the file asfquart-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: asfquart-0.1.5-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794f2871b0521b1170697ecd5854c0fbe47ffa48aba691dffb076d8ce15d3864 |
|
MD5 | 32311a6a89127502c32cb84ed36cc848 |
|
BLAKE2b-256 | f56848ddb4d84e0f4cf7b479f6bfb4c3d8e5173b6c1f55e372f46168c7a6640a |